throw "string" -> throw new Error("string"

This commit is contained in:
2020-09-16 17:37:22 +00:00
parent 3dc5f8134c
commit f67379f83f
31 changed files with 195 additions and 151 deletions

View File

@@ -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(