ui: dark mode

Co-authored by: NetherDevil@outlook.com
This commit is contained in:
undefined committed 2022-03-16 19:17:35 +08:00
1 parent c28f2b3437
commit e427b9196c
8 files changed
+366 -10

No files matched your search

+2 -2
View File
@@ -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({