Skip to content
Snippets Groups Projects
Unverified Commit 771f0115 authored by syuilo's avatar syuilo
Browse files

Better log

parent 82686586
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,11 @@ export default async (endpoint: string, user: IUser, app: IApp, data: any, file?
if (e instanceof ApiError) {
throw e;
} else {
apiLogger.error(e);
apiLogger.error(`Internal error occurred in ${ep.name}`, {
ep: ep.name,
ps: data,
e: e
});
throw new ApiError(null, {
e: {
message: e.message,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment