mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
diagnostics: Remove extra 'error' displayed results.
Just show 'error' for missing command.
This commit is contained in:
parent
d8828ee877
commit
e7b68f7e28
@ -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}')
|
||||
|
||||
@ -37,7 +37,6 @@
|
||||
<span class="label label-danger">{{ result }}</span>
|
||||
{% elif result == 'error' %}
|
||||
<span class="label label-warning">{{ result }}</span>
|
||||
{{ result }}
|
||||
{% else %}
|
||||
{{ result }}
|
||||
{% endif %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user