mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/general: make fatal errors fatal
This commit is contained in:
@ -97,7 +97,7 @@ class Api {
|
||||
}
|
||||
}
|
||||
if (minViableRank === null) {
|
||||
console.error('Bad privilege name: ' + lookup);
|
||||
throw `Bad privilege name: ${lookup}`;
|
||||
}
|
||||
let myRank = this.user !== null ?
|
||||
this.allRanks.indexOf(this.user.rank) :
|
||||
|
Reference in New Issue
Block a user