mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
Display and log an error, including contents of current_results. Clear the contents of current_results. Tests: - View the diagnostics results as normal. - Introduce a TypeError before the results are copied. See the error message shown in the interface. (The error details are cleared when the page is refreshed.) Helps: #2410 Signed-off-by: James Valleroy <jvalleroy@mailbox.org> [sunil: Fix a mypy error] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>