diff options
Diffstat (limited to 'scripts/wic')
| -rwxr-xr-x | scripts/wic | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/scripts/wic b/scripts/wic index 90b36c68ac..cf968591e2 100755 --- a/scripts/wic +++ b/scripts/wic | |||
| @@ -53,6 +53,7 @@ else: | |||
| 53 | bitbake_main = None | 53 | bitbake_main = None |
| 54 | 54 | ||
| 55 | from wic.utils.oe.misc import find_bitbake_env_lines, set_bitbake_env_lines | 55 | from wic.utils.oe.misc import find_bitbake_env_lines, set_bitbake_env_lines |
| 56 | from wic.utils.errors import WicError | ||
| 56 | from image import engine | 57 | from image import engine |
| 57 | from image import help as hlp | 58 | from image import help as hlp |
| 58 | 59 | ||
| @@ -309,10 +310,8 @@ def main(argv): | |||
| 309 | 310 | ||
| 310 | if __name__ == "__main__": | 311 | if __name__ == "__main__": |
| 311 | try: | 312 | try: |
| 312 | ret = main(sys.argv[1:]) | 313 | sys.exit(main(sys.argv[1:])) |
| 313 | except Exception: | 314 | except WicError as err: |
| 314 | ret = 1 | 315 | print >> sys.stderr, "ERROR:", err |
| 315 | import traceback | 316 | sys.exit(1) |
| 316 | traceback.print_exc() | ||
| 317 | sys.exit(ret) | ||
| 318 | 317 | ||
