diff --git a/locales/en.json b/locales/en.json index e939b26fa..5dd46485b 100644 --- a/locales/en.json +++ b/locales/en.json @@ -30,7 +30,7 @@ "app_upgraded": "{app:s} has been upgraded", "appslist_fetched": "The app list has been fetched", "appslist_removed": "The app list has been removed", - "appslist_retrieve_error": "Unable to retrieve the remote app list", + "appslist_retrieve_error": "Unable to retrieve the remote app list: {error}", "appslist_unknown": "Unknown app list", "ask_current_admin_password": "Current administration password", "ask_email": "Email address", diff --git a/src/yunohost/app.py b/src/yunohost/app.py index f6f8699a4..211009a04 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -103,9 +103,7 @@ def app_fetchlist(url=None, name=None): try: urlretrieve(url, '%s/%s.json' % (repo_path, name)) except Exception as e: - # I don't know how to put e into the MoulinetteError stuff - print e - raise MoulinetteError(errno.EBADR, m18n.n('appslist_retrieve_error')) + raise MoulinetteError(errno.EBADR, m18n.n('appslist_retrieve_error'), error=str(e)) open("/etc/cron.d/yunohost-applist-%s" % name, "w").write('00 00 * * * root yunohost app fetchlist -u %s -n %s > /dev/null 2>&1\n' % (url, name))