Merge "More informative error when command fails"

This commit is contained in:
Jenkins 2015-08-09 04:59:16 +00:00 committed by Gerrit Code Review
commit 1f63004479
1 changed files with 2 additions and 2 deletions

View File

@ -97,8 +97,8 @@ def run_dox(args, images, command, image_name):
run = functools.partial(dox.runner.Runner(args, image_name).run,
command=command)
map(run, images)
except Exception:
logger.error("Operation failed, aborting dox.", exc_info=args.debug)
except Exception as e:
logger.error("Operation failed, aborting dox.", exc_info=e)
return 1