Wrapped additional error data under data
This commit is contained in:
@ -55,7 +55,7 @@ api.use(async (ctx, next) => {
|
||||
error: _.snakeCase(err.id || error),
|
||||
status: err.status,
|
||||
message,
|
||||
adminEmail: err.adminEmail ? err.adminEmail : undefined,
|
||||
data: err.errorData ? err.errorData : undefined,
|
||||
};
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user