util: remove node_modules/ in errMsg

This commit is contained in:
undefined committed 2021-05-21 18:14:38 +08:00
1 parent 561c4d4175
commit cc6e623413
4 files changed
+11 -5

No files matched your search

+6 -2
View File
@@ -1,10 +1,14 @@
/* eslint-disable no-empty-function */
/* eslint-disable class-methods-use-this */
import { NotFoundError } from '../error';
import { Route, Handler } from '../service/server';
import {
Route, Handler, param, Types,
} from '../service/server';
class NotFoundHandler extends Handler {
prepare() {
@param('bsod', Types.Boolean)
prepare(domainId: string, bsod: boolean) {
if (bsod) throw new Error(this.request.path);
throw new NotFoundError(this.request.path);
}