From f09ab43eb8b6deb9adb66385192651501db1ac8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Sat, 21 May 2016 21:21:20 +0200 Subject: [PATCH] [fix] Print string error of MoulinetteError in hook_callback --- src/yunohost/hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/hook.py b/src/yunohost/hook.py index aafe15459..c55a4fd43 100644 --- a/src/yunohost/hook.py +++ b/src/yunohost/hook.py @@ -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: