web: Normalize client-side error handling (#13595)

web: Clean up error handling. Prep for permission checks.

- Add clearer reporting for API and network errors.
- Tidy error checking.
- Partial type safety for events.
This commit is contained in:
Teffen Ellis
2025-04-07 19:50:41 +02:00
committed by GitHub
parent e93b2a1a75
commit 363d655378
53 changed files with 901 additions and 493 deletions

View File

@ -47,10 +47,11 @@ export class ModalForm extends ModalButton {
this.loading = false;
this.locked = false;
})
.catch((exc) => {
.catch((error: unknown) => {
this.loading = false;
this.locked = false;
throw exc;
throw error;
});
}