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:
		| @ -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; | ||||
|             }); | ||||
|     } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Teffen Ellis
					Teffen Ellis