适配 hydro-dev/geoip

This commit is contained in:
undefined committed 2020-07-02 13:32:11 +08:00
1 parent 8051bb958b
commit c52ddd7512
3 files changed
+8 -2

No files matched your search

+1
View File
@@ -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;