mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
enhance(server): Log error message when internal error occured
This commit is contained in:
parent
2c4faa7db6
commit
60ed35680c
@ -77,7 +77,7 @@ export default async (endpoint: string, user: User | null | undefined, token: Ac
|
||||
if (e instanceof ApiError) {
|
||||
throw e;
|
||||
} else {
|
||||
apiLogger.error(`Internal error occurred in ${ep.name}`, {
|
||||
apiLogger.error(`Internal error occurred in ${ep.name}: ${e?.message}`, {
|
||||
ep: ep.name,
|
||||
ps: data,
|
||||
e: {
|
||||
|
Loading…
Reference in New Issue
Block a user