From a1e6f3e9e17c889a03bf244eeec8f062def7879e Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Thu, 9 Feb 2023 18:37:45 +0300 Subject: [PATCH] perf(web): throw js error on unauthorized TDBMS request --- web/public/js/tdbms.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/public/js/tdbms.js b/web/public/js/tdbms.js index a998307..2676f2d 100644 --- a/web/public/js/tdbms.js +++ b/web/public/js/tdbms.js @@ -10,6 +10,7 @@ function tdb_query(trdb, trc, trb) { statusCode: { 401: function () { location.href = "/auth"; + throw new Error("Unauthorized TDBMS request"); } }, success: function (resp) {