fix: error json
This commit is contained in:
parent
3542d9f7fd
commit
e0c8c10d28
1 changed files with 2 additions and 2 deletions
|
|
@ -150,8 +150,8 @@ export class BackupController extends Controller {
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
).then(async (r) => {
|
).then(async (r) => {
|
||||||
const data = await r.json();
|
const data = await r.text();
|
||||||
if (typeof data === "object" && "error" in data) {
|
if (data.includes("error")) {
|
||||||
console.error(data);
|
console.error(data);
|
||||||
throw new Error("Backup Error");
|
throw new Error("Backup Error");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue