mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Log real exception string error in hook_callback
This commit is contained in:
parent
9b2da4944e
commit
4d439217f1
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ def hook_callback(action, hooks=[], args=None):
|
||||||
try:
|
try:
|
||||||
hook_exec(info['path'], args=args, raise_on_error=True)
|
hook_exec(info['path'], args=args, raise_on_error=True)
|
||||||
except MoulinetteError as e:
|
except MoulinetteError as e:
|
||||||
logger.error(e.strerror)
|
logger.error(str(e))
|
||||||
state = 'failed'
|
state = 'failed'
|
||||||
try:
|
try:
|
||||||
result[state][name].append(info['path'])
|
result[state][name].append(info['path'])
|
||||||
|
|
Loading…
Add table
Reference in a new issue