[enh] display file path on file_not_exist error

This commit is contained in:
Laurent Peuch 2016-06-23 18:36:21 +02:00
parent af2847f99c
commit 365f7694a9

View file

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