mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 07:26:18 -05:00
Converting APIError to use SanicException as base.
This commit is contained in:
parent
58de8c7c5b
commit
9ee73af61d
19 changed files with 181 additions and 161 deletions
|
|
@ -643,7 +643,7 @@ export async function deleteFile(paths) {
|
|||
toast({
|
||||
type: 'error',
|
||||
title: 'Delete error',
|
||||
description: content['message'] || content['summary'],
|
||||
description: content['message'],
|
||||
time: 5000,
|
||||
});
|
||||
}
|
||||
|
|
@ -886,7 +886,7 @@ export async function deleteTag(id, name) {
|
|||
const content = await response.json();
|
||||
if (content['code'] === 'USED_TAG') {
|
||||
toast({
|
||||
type: 'error', title: 'Error!', description: content['error'] || content['summary'], time: 5000,
|
||||
type: 'error', title: 'Error!', description: content['message'], time: 5000,
|
||||
})
|
||||
}
|
||||
} else if (response.status !== 204) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue