mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
适配 hydro-dev/geoip
This commit is contained in:
1 parent
8051bb958b
commit
c52ddd7512
3 files changed
+8
-2
No files matched your search
@@ -367,6 +367,7 @@ class Handler {
|
||||
}
|
||||
|
||||
async onerror(error) {
|
||||
if (!error.msg) error.msg = () => error.message;
|
||||
console.error(error.msg(), error.params);
|
||||
console.error(error.stack);
|
||||
this.response.status = error instanceof UserFacingError ? error.code : 500;
|
||||
|
||||
Reference in new issue
Block a user