[microdecision] Missing translation for key 'file_not_exist'

This commit is contained in:
Alexandre Aubin 2019-02-04 18:27:50 +01:00
parent 0a0ab3cf9f
commit 81bbb62b82
2 changed files with 2 additions and 1 deletions

View file

@ -186,6 +186,7 @@
"extracting": "Extracting…", "extracting": "Extracting…",
"experimental_feature": "Warning: this feature is experimental and not consider stable, you shouldn't be using it except if you know what you are doing.", "experimental_feature": "Warning: this feature is experimental and not consider stable, you shouldn't be using it except if you know what you are doing.",
"field_invalid": "Invalid field '{:s}'", "field_invalid": "Invalid field '{:s}'",
"file_does_not_exist": "The file {path:s} does not exists.",
"firewall_reload_failed": "Unable to reload the firewall", "firewall_reload_failed": "Unable to reload the firewall",
"firewall_reloaded": "The firewall has been reloaded", "firewall_reloaded": "The firewall has been reloaded",
"firewall_rules_cmd_failed": "Some firewall rules commands have failed. For more information, see the log.", "firewall_rules_cmd_failed": "Some firewall rules commands have failed. For more information, see the log.",

View file

@ -317,7 +317,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 YunohostError('file_not_exist', path=path) raise YunohostError('file_does_not_exist', path=path)
# Construct command variables # Construct command variables
cmd_args = '' cmd_args = ''