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 = ''