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) => {
|
||||
const data = await r.json();
|
||||
if (typeof data === "object" && "error" in data) {
|
||||
const data = await r.text();
|
||||
if (data.includes("error")) {
|
||||
console.error(data);
|
||||
throw new Error("Backup Error");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue