mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 19:43:09 +02:00
Better log
This commit is contained in:
parent
826865869a
commit
771f011506
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue