fix: error json
This commit is contained in:
parent
40f3306cdc
commit
c4457bbf6c
1 changed files with 2 additions and 2 deletions
|
|
@ -117,8 +117,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