[fix] Replace error message of unhandled exception while installing an app

This commit is contained in:
Jérôme Lebleu 2014-07-20 18:45:46 +02:00
parent 81051f166b
commit 8f1dd4b5e3
3 changed files with 4 additions and 2 deletions

4
app.py
View file

@ -498,8 +498,8 @@ def app_install(auth, app, label=None, args=None):
raise MoulinetteError(errno.EINTR, m18n.g('operation_interrupted'))
except Exception as e:
import traceback
msignals.display(traceback.format_exc(), 'log')
raise MoulinetteError(errno.EIO, m18n.n('installation_failed'))
msignals.display(traceback.format_exc().strip(), 'log')
raise MoulinetteError(errno.EIO, m18n.n('unexpected_error'))
def app_remove(auth, app):

View file

@ -5,6 +5,7 @@
"upgrade_complete" : "Upgrade complete",
"installation_complete" : "Installation complete",
"installation_failed" : "Installation failed",
"unexpected_error" : "An unexpected error occured",
"license_undefined" : "undefined",
"no_appslist_found" : "No apps list found",

View file

@ -5,6 +5,7 @@
"upgrade_complete" : "Mise à jour terminée",
"installation_complete" : "Installation terminée",
"installation_failed" : "Échec de l'installation",
"unexpected_error" : "Une erreur inattendue est survenue",
"license_undefined" : "indéfinie",
"no_appslist_found" : "Aucune liste d'applications trouvée",