Converting APIError to use SanicException as base.

This commit is contained in:
Roland 2024-05-01 17:42:26 -06:00
parent 58de8c7c5b
commit 9ee73af61d
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
19 changed files with 181 additions and 161 deletions

View file

@ -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) {