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 %}