From 365f7694a9b27d2684eef93616aad19b3d0398df Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Thu, 23 Jun 2016 18:36:21 +0200 Subject: [PATCH] [enh] display file path on file_not_exist error --- 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 500db919f..2d46cfcd5 100644 --- a/src/yunohost/hook.py +++ b/src/yunohost/hook.py @@ -315,7 +315,7 @@ def hook_exec(path, args=None, raise_on_error=False, no_trace=False, if path[0] != '/': path = os.path.realpath(path) if not os.path.isfile(path): - raise MoulinetteError(errno.EIO, m18n.g('file_not_exist')) + raise MoulinetteError(errno.EIO, m18n.g('file_not_exist', path=path)) # Construct command variables cmd_args = ''