Commit b6b975a7 authored by Marco Mariani's avatar Marco Mariani

properly log OSError exceptions

parent 1d9e2b88
......@@ -275,6 +275,7 @@ def bootstrapBuildout(path, logger, buildout=None,
logger.error(message)
raise BuildoutFailedError('%s:\n%s\n' % (message, process_handler.output))
except OSError as exc:
logger.exception(exc)
raise BuildoutFailedError(exc)
finally:
old_umask = os.umask(umask)
......@@ -318,6 +319,7 @@ def launchBuildout(path, buildout_binary, logger,
logger.error(message)
raise BuildoutFailedError('%s:\n%s\n' % (message, process_handler.output))
except OSError as exc:
logger.exception(exc)
raise BuildoutFailedError(exc)
finally:
old_umask = os.umask(umask)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment