throw "string" -> throw new Error("string"
This commit is contained in:
@@ -841,7 +841,7 @@ async function getUserOptions() {
|
||||
"logItem",
|
||||
"Initialize::() fetch useroptions -> error" + error
|
||||
);
|
||||
throw error;
|
||||
throw new Error(error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -851,7 +851,7 @@ async function getUserOptions() {
|
||||
export default function initialize() {
|
||||
return new Promise(async function(resolve, reject) {
|
||||
if (!window.$gz.store.state.authenticated) {
|
||||
throw "initialize: Error, called but user not authenticated!";
|
||||
throw new Error("initialize: Error, called but user not authenticated!");
|
||||
}
|
||||
try {
|
||||
await window.$gz.translation.cacheTranslations(
|
||||
|
||||
Reference in New Issue
Block a user