mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 22:22:51 +09:00
Better log
This commit is contained in:
parent
826865869a
commit
771f011506
@ -75,7 +75,11 @@ export default async (endpoint: string, user: IUser, app: IApp, data: any, file?
|
|||||||
if (e instanceof ApiError) {
|
if (e instanceof ApiError) {
|
||||||
throw e;
|
throw e;
|
||||||
} else {
|
} else {
|
||||||
apiLogger.error(e);
|
apiLogger.error(`Internal error occurred in ${ep.name}`, {
|
||||||
|
ep: ep.name,
|
||||||
|
ps: data,
|
||||||
|
e: e
|
||||||
|
});
|
||||||
throw new ApiError(null, {
|
throw new ApiError(null, {
|
||||||
e: {
|
e: {
|
||||||
message: e.message,
|
message: e.message,
|
||||||
|
Loading…
Reference in New Issue
Block a user