[fix] Log real exception string error in hook_callback

This commit is contained in:
Jérôme Lebleu 2015-11-15 18:33:02 +01:00
parent 9b2da4944e
commit 4d439217f1

View file

@ -266,7 +266,7 @@ def hook_callback(action, hooks=[], args=None):
try:
hook_exec(info['path'], args=args, raise_on_error=True)
except MoulinetteError as e:
logger.error(e.strerror)
logger.error(str(e))
state = 'failed'
try:
result[state][name].append(info['path'])