mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] make exceptions messages more obivous
This commit is contained in:
parent
297026e654
commit
9cd760defd
2 changed files with 5 additions and 2 deletions
|
@ -18,7 +18,8 @@
|
|||
"app_id_invalid": "Invalid app id",
|
||||
"app_incompatible": "The app is incompatible with your YunoHost version",
|
||||
"app_install_files_invalid": "Invalid installation files",
|
||||
"app_location_already_used": "An app is already installed in this location",
|
||||
"app_location_already_used": "The app '{app}' is already installed on that location ({path})",
|
||||
"app_make_default_location_already_used": "Can't make the app '{app}' the default on the domain {domain} is already used by the other app '{other_app}'",
|
||||
"app_location_install_failed": "Unable to install the app in this location because it conflit with the app '{other_app}' already installed on '{other_path}'",
|
||||
"app_location_unavailable": "This url is not available or conflicts with an already installed app",
|
||||
"app_manifest_invalid": "Invalid app manifest: {error}",
|
||||
|
|
|
@ -1016,7 +1016,9 @@ def app_makedefault(auth, app, domain=None):
|
|||
|
||||
if '/' in app_map(raw=True)[domain]:
|
||||
raise MoulinetteError(errno.EEXIST,
|
||||
m18n.n('app_location_already_used'))
|
||||
m18n.n('app_make_default_location_already_used',
|
||||
app=app, domain=app_domain,
|
||||
other_app=app_map(raw=True)[domain]["/"]["id"]))
|
||||
|
||||
try:
|
||||
with open('/etc/ssowat/conf.json.persistent') as json_conf:
|
||||
|
|
Loading…
Add table
Reference in a new issue