mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
1 parent
c28f2b3437
commit
e427b9196c
8 files changed
+366
-10
No files matched your search
@@ -823,8 +823,8 @@ export class ConnectionHandler extends HandlerCommon {
|
||||
onerror(err: HydroError) {
|
||||
if (err instanceof UserFacingError) err.stack = this.conn.pathname;
|
||||
if (!(err instanceof NotFoundError)
|
||||
&& !((err instanceof PrivilegeError || err instanceof PermissionError) && this.user._id === 0)) {
|
||||
logger.error(`Path:${this.conn.pathname}, User:${this.user._id}(${this.user.uname})`);
|
||||
&& !((err instanceof PrivilegeError || err instanceof PermissionError) && this.user?._id === 0)) {
|
||||
logger.error(`Path:${this.conn.pathname}, User:${this.user?._id}(${this.user?.uname})`);
|
||||
logger.error(err);
|
||||
}
|
||||
this.send({
|
||||
|
||||
Reference in new issue
Block a user