mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 11:56:44 -06:00
enhance(server): Log error message when internal error occured
This commit is contained in:
parent
f2e347fec1
commit
fef5ec874b
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ export default async (endpoint: string, user: User | null | undefined, token: Ac
|
||||||
if (e instanceof ApiError) {
|
if (e instanceof ApiError) {
|
||||||
throw e;
|
throw e;
|
||||||
} else {
|
} else {
|
||||||
apiLogger.error(`Internal error occurred in ${ep.name}`, {
|
apiLogger.error(`Internal error occurred in ${ep.name}: ${e?.message}`, {
|
||||||
ep: ep.name,
|
ep: ep.name,
|
||||||
ps: data,
|
ps: data,
|
||||||
e: {
|
e: {
|
||||||
|
|
Loading…
Reference in a new issue