mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-25 10:19:06 +01:00
[mastodon-client] Return error messages for error types without a .message property
This commit is contained in:
parent
c8415a5223
commit
99de127376
@ -41,7 +41,7 @@ export async function CatchErrorsMiddleware(ctx: MastoContext, next: () => Promi
|
||||
}
|
||||
ctx.status = 500;
|
||||
}
|
||||
ctx.body = { error: e.message };
|
||||
ctx.body = { error: e.message ?? e };
|
||||
return;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user