mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Fix error log
This commit is contained in:
parent
3e2202573f
commit
db1cf9a7a3
1 changed files with 5 additions and 1 deletions
|
@ -80,7 +80,11 @@ export default async (endpoint: string, user: User, app: App, data: any, file?:
|
|||
apiLogger.error(`Internal error occurred in ${ep.name}`, {
|
||||
ep: ep.name,
|
||||
ps: data,
|
||||
e: e
|
||||
e: {
|
||||
message: e.message,
|
||||
code: e.name,
|
||||
stack: e.stack
|
||||
}
|
||||
});
|
||||
throw new ApiError(null, {
|
||||
e: {
|
||||
|
|
Loading…
Add table
Reference in a new issue