mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Replace error message of unhandled exception while installing an app
This commit is contained in:
parent
81051f166b
commit
8f1dd4b5e3
3 changed files with 4 additions and 2 deletions
4
app.py
4
app.py
|
@ -498,8 +498,8 @@ def app_install(auth, app, label=None, args=None):
|
||||||
raise MoulinetteError(errno.EINTR, m18n.g('operation_interrupted'))
|
raise MoulinetteError(errno.EINTR, m18n.g('operation_interrupted'))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
import traceback
|
import traceback
|
||||||
msignals.display(traceback.format_exc(), 'log')
|
msignals.display(traceback.format_exc().strip(), 'log')
|
||||||
raise MoulinetteError(errno.EIO, m18n.n('installation_failed'))
|
raise MoulinetteError(errno.EIO, m18n.n('unexpected_error'))
|
||||||
|
|
||||||
|
|
||||||
def app_remove(auth, app):
|
def app_remove(auth, app):
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
"upgrade_complete" : "Upgrade complete",
|
"upgrade_complete" : "Upgrade complete",
|
||||||
"installation_complete" : "Installation complete",
|
"installation_complete" : "Installation complete",
|
||||||
"installation_failed" : "Installation failed",
|
"installation_failed" : "Installation failed",
|
||||||
|
"unexpected_error" : "An unexpected error occured",
|
||||||
|
|
||||||
"license_undefined" : "undefined",
|
"license_undefined" : "undefined",
|
||||||
"no_appslist_found" : "No apps list found",
|
"no_appslist_found" : "No apps list found",
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
"upgrade_complete" : "Mise à jour terminée",
|
"upgrade_complete" : "Mise à jour terminée",
|
||||||
"installation_complete" : "Installation terminée",
|
"installation_complete" : "Installation terminée",
|
||||||
"installation_failed" : "Échec de l'installation",
|
"installation_failed" : "Échec de l'installation",
|
||||||
|
"unexpected_error" : "Une erreur inattendue est survenue",
|
||||||
|
|
||||||
"license_undefined" : "indéfinie",
|
"license_undefined" : "indéfinie",
|
||||||
"no_appslist_found" : "Aucune liste d'applications trouvée",
|
"no_appslist_found" : "Aucune liste d'applications trouvée",
|
||||||
|
|
Loading…
Add table
Reference in a new issue