From e7b68f7e288b384152fcbe4eb6136ec6058eaadb Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sat, 29 Aug 2015 09:37:35 -0400 Subject: [PATCH] diagnostics: Remove extra 'error' displayed results. Just show 'error' for missing command. --- plinth/action_utils.py | 2 +- plinth/modules/diagnostics/templates/diagnostics_results.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/plinth/action_utils.py b/plinth/action_utils.py index b9a673dab..4f5078fcc 100644 --- a/plinth/action_utils.py +++ b/plinth/action_utils.py @@ -269,7 +269,7 @@ def diagnose_url(url, kind=None, env=None, extra_options=None, wrapper=None, if exception.returncode == 6: result = 'passed' except FileNotFoundError: - result = 'error: missing command' + result = 'error' if kind: return [_('Access URL {url} on tcp{kind}') diff --git a/plinth/modules/diagnostics/templates/diagnostics_results.html b/plinth/modules/diagnostics/templates/diagnostics_results.html index b8b59069c..195a28c98 100644 --- a/plinth/modules/diagnostics/templates/diagnostics_results.html +++ b/plinth/modules/diagnostics/templates/diagnostics_results.html @@ -37,7 +37,6 @@ {{ result }} {% elif result == 'error' %} {{ result }} - {{ result }} {% else %} {{ result }} {% endif %}