From fea6d3568ffd55f38f23c99cea8f71176bde8b98 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 28 Aug 2017 18:00:23 +0200 Subject: [PATCH] [fix] previous string was expecting an app name but we don't have any --- locales/en.json | 1 + src/yunohost/tools.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/locales/en.json b/locales/en.json index dd2dae240..80ff22655 100644 --- a/locales/en.json +++ b/locales/en.json @@ -35,6 +35,7 @@ "app_unknown": "Unknown app", "app_unsupported_remote_type": "Unsupported remote type used for the app", "app_upgrade_failed": "Unable to upgrade {app:s}", + "app_upgrade_some_app_failed": "Unable to upgrade some applications", "app_upgraded": "{app:s} has been upgraded", "appslist_corrupted_json": "Could not load the application lists. It looks like {filename:s} is corrupted.", "appslist_could_not_migrate": "Could not migrate app list {appslist:s} ! Unable to parse the url... The old cron job has been kept in {bkp_file:s}.", diff --git a/src/yunohost/tools.py b/src/yunohost/tools.py index 43407ad85..e172fa8e5 100644 --- a/src/yunohost/tools.py +++ b/src/yunohost/tools.py @@ -511,7 +511,7 @@ def tools_upgrade(auth, ignore_apps=False, ignore_packages=False): except Exception as e: failure = True logger.warning('unable to upgrade apps: %s' % str(e)) - logger.error(m18n.n('app_upgrade_failed')) + logger.error(m18n.n('app_upgrade_some_app_failed')) if not failure: logger.success(m18n.n('system_upgraded'))