[fix] Print string error of MoulinetteError in hook_callback

This commit is contained in:
Jérôme Lebleu 2016-05-21 21:21:20 +02:00
parent e7786064fa
commit f09ab43eb8

View file

@ -281,7 +281,7 @@ def hook_callback(action, hooks=[], args=None, no_trace=False, chdir=None,
no_trace=no_trace, raise_on_error=True)
except MoulinetteError as e:
state = 'failed'
logger.error(str(e))
logger.error(e.strerror, exc_info=1)
post_callback(name=name, priority=priority, path=path,
succeed=False)
else: