return an object when fetch failed
This commit is contained in:
parent
59f8f33df7
commit
4ce25a918c
|
|
@ -94,6 +94,8 @@ export async function walkFetch(request: Request): Promise<any> {
|
||||||
type: 'danger',
|
type: 'danger',
|
||||||
okButtonType: 'outline-light',
|
okButtonType: 'outline-light',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
return { code: -1, message: trans('general.fatalError') }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user