handle error responses
This commit is contained in:
parent
5b2252d6bd
commit
6ad423ae5c
3 changed files with 5 additions and 5 deletions
|
@ -26,7 +26,7 @@
|
|||
redirect("/login");
|
||||
})
|
||||
.catch((err) => {
|
||||
showErrorToast(err.message);
|
||||
showErrorToast(err.response.data.message);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
|
Reference in a new issue