mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-05 10:18:38 +09:00
Fix error log
This commit is contained in:
parent
d4ad36fa41
commit
ab8c6515b8
@ -80,7 +80,11 @@ export default async (endpoint: string, user: User, app: App, data: any, file?:
|
|||||||
apiLogger.error(`Internal error occurred in ${ep.name}`, {
|
apiLogger.error(`Internal error occurred in ${ep.name}`, {
|
||||||
ep: ep.name,
|
ep: ep.name,
|
||||||
ps: data,
|
ps: data,
|
||||||
e: e
|
e: {
|
||||||
|
message: e.message,
|
||||||
|
code: e.name,
|
||||||
|
stack: e.stack
|
||||||
|
}
|
||||||
});
|
});
|
||||||
throw new ApiError(null, {
|
throw new ApiError(null, {
|
||||||
e: {
|
e: {
|
||||||
|
Loading…
Reference in New Issue
Block a user