[enh] Improve end failed message on app_install

This commit is contained in:
ljf 2018-06-04 21:39:28 +02:00
parent 9d59c8555a
commit 91caae665e

View file

@ -823,7 +823,7 @@ def app_install(uo, auth, app, label=None, args=None, no_remove_on_failure=False
if install_retcode == -1:
msg = m18n.n('operation_interrupted') + " " + error_msg
raise MoulinetteError(errno.EINTR, msg)
msg = m18n.n('installation_failed') + " " + error_msg
msg = error_msg
raise MoulinetteError(errno.EIO, msg)
# Clean hooks and add new ones