feat(frontend): show error ID for internal server errors

This commit is contained in:
sam 2025-01-30 02:00:49 +01:00
parent 83b62b4845
commit a0ba712632
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
8 changed files with 1554 additions and 25 deletions

View file

@ -14,6 +14,7 @@ export default class ApiError {
toObject(): RawApiError {
return {
error_id: this.raw?.error_id,
status: this.raw?.status || 500,
code: this.code,
message: this.raw?.message || "Internal server error",
@ -23,6 +24,7 @@ export default class ApiError {
}
export type RawApiError = {
error_id?: string;
status: number;
message: string;
code: ErrorCode;