mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +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