From 24914e90d1d3afa3aa2db5973fb3b6ae4ef15b08 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sun, 13 Oct 2019 13:08:19 +0200 Subject: [PATCH] web: fix quota scan error message --- templates/users.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/users.html b/templates/users.html index 9c93bc00..a36dd4db 100644 --- a/templates/users.html +++ b/templates/users.html @@ -183,7 +183,11 @@ if ($xhr) { var json = $xhr.responseJSON; if (json) { - txt += ": " + json.error; + if (json.message) { + txt += ": " + json.message; + } else if (json.error) { + txt += ": " + json.error; + } } } $('#errorTxt').text(txt);