Skip to content

Commit 80c8fab

Browse files
committed
[Delete] delete log script #15
1 parent 4a08a5e commit 80c8fab

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

server/app/src/apis/module/error.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,14 @@ function errorResposne(
1616
res: Response
1717
) {
1818
if (err instanceof ServerError) {
19-
console.error(err);
2019
return res.status(500).json({ statusCode: err.code, msg: err.message });
2120
}
2221
if (err instanceof BadRequestError) {
23-
console.error(err);
2422
return res.status(400).json({ statusCode: err.code, msg: err.message });
2523
}
2624
if (err instanceof NotFoundError) {
27-
console.error(err);
2825
return res.status(404).json({ statusCode: err.code, msg: err.message });
2926
}
30-
console.error(err);
3127
return res.status(500).json({ statusCode: 500, msg: 'Unknown error' });
3228
}
3329

0 commit comments

Comments
 (0)