mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-10 09:59:48 +01:00
add basic error handling
This commit is contained in:
parent
13ba396e53
commit
f97a089106
@ -112,10 +112,19 @@ export class SendAddEditComponent {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!confirmed) {
|
if (!confirmed) {
|
||||||
return false;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.sendApiService.delete(this.config.originalSend?.id);
|
try {
|
||||||
|
await this.sendApiService.delete(this.config.originalSend?.id);
|
||||||
|
} catch (e) {
|
||||||
|
this.toastService.showToast({
|
||||||
|
variant: "error",
|
||||||
|
title: null,
|
||||||
|
message: e.message,
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.location.back();
|
this.location.back();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user