throw "string" -> throw new Error("string"
This commit is contained in:
@@ -310,7 +310,7 @@ export default {
|
||||
|
||||
if (res.error) {
|
||||
//don't expect this to ever get called but just in case
|
||||
throw res.error;
|
||||
throw new Error(res.error);
|
||||
}
|
||||
await processLogin(res.data, loggedInWithKnownPassword);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user