From 62f25c71723848988f552ea06b3cc7dc26730eca Mon Sep 17 00:00:00 2001 From: Martchus Date: Sun, 17 Mar 2024 21:53:36 +0100 Subject: [PATCH] Fix condition for displaying "internal server error" --- srv/static/js/ajaxhelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srv/static/js/ajaxhelper.js b/srv/static/js/ajaxhelper.js index 996dc9a..a33e74c 100644 --- a/srv/static/js/ajaxhelper.js +++ b/srv/static/js/ajaxhelper.js @@ -39,7 +39,7 @@ export function queryRoute(method, path, callback, type) default: try { // avoid showing HTML code from gateway - ajaxRequest.responseTextDisplay = ajaxRequest.status >= 500 || ajaxRequest.status < 600 ? 'internal server error' : ajaxRequest.responseText; + ajaxRequest.responseTextDisplay = ajaxRequest.status >= 500 && ajaxRequest.status < 600 ? 'internal server error' : ajaxRequest.responseText; return callback(this, status === 200); } catch (e) { window.alert('Unable to process server response: ' + e);