mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
[mastodon-client] Return error messages for error types without a .message property
This commit is contained in:
parent
c8415a5223
commit
99de127376
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue