mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fix: display an alert on any request error
This used to be the case, but was changed by mistake in the request refactor (swicht from xhr)
This commit is contained in:
parent
7660153b3b
commit
d221a98e78
1 changed files with 2 additions and 0 deletions
|
@ -144,6 +144,8 @@ export class ServerRequest extends Request {
|
|||
_onNOK(error) {
|
||||
if (error.status === 403) {
|
||||
Alert.error(error.message || translate('Action not allowed :('))
|
||||
} else {
|
||||
super._onError(error)
|
||||
}
|
||||
return [{}, error.response, error]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue