Files
NapCatQQ/.pnpm-store/v3/files/d7/77ea5d85ae4a3cc13391b1cc8b2277fe5d5d00aefbf9e1ccdd9f2cff9b7e37c5998414c631ae288f5c25bd5d17d856a04bf5aa76d0b551e8247690ebdde1d7
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

16 lines
441 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils = require("../../utils");
class ErrorFilter {
constructor(_settings) {
this._settings = _settings;
}
getFilter() {
return (error) => this._isNonFatalError(error);
}
_isNonFatalError(error) {
return utils.errno.isEnoentCodeError(error) || this._settings.suppressErrors;
}
}
exports.default = ErrorFilter;