mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] display file path on file_not_exist error
This commit is contained in:
parent
af2847f99c
commit
365f7694a9
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ def hook_exec(path, args=None, raise_on_error=False, no_trace=False,
|
||||||
if path[0] != '/':
|
if path[0] != '/':
|
||||||
path = os.path.realpath(path)
|
path = os.path.realpath(path)
|
||||||
if not os.path.isfile(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
|
# Construct command variables
|
||||||
cmd_args = ''
|
cmd_args = ''
|
||||||
|
|
Loading…
Add table
Reference in a new issue