perf(web): throw js error on unauthorized TDBMS request
This commit is contained in:
parent
f7c8923199
commit
a1e6f3e9e1
@ -10,6 +10,7 @@ function tdb_query(trdb, trc, trb) {
|
|||||||
statusCode: {
|
statusCode: {
|
||||||
401: function () {
|
401: function () {
|
||||||
location.href = "/auth";
|
location.href = "/auth";
|
||||||
|
throw new Error("Unauthorized TDBMS request");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
success: function (resp) {
|
success: function (resp) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user