mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
user: throw on 200 status code if there's error in body
This commit is contained in:
@@ -97,9 +97,9 @@ async function authRequest(endpoint, data) {
|
||||
|
||||
if (response.ok) {
|
||||
let result = await response.json();
|
||||
/* TODO if (result.error) {
|
||||
if (result.error) {
|
||||
throw new Error(result.error);
|
||||
} */
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user