a bit timeout
This commit is contained in:
Vendored
+1
@@ -0,0 +1 @@
|
||||
export declare const errorHandle: (error: any, req: any, res: any, next: any) => void;
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.errorHandle = void 0;
|
||||
const errorHandle = (error, req, res, next) => {
|
||||
res.status(500).send({
|
||||
error: error.message || 'some error'
|
||||
});
|
||||
};
|
||||
exports.errorHandle = errorHandle;
|
||||
Reference in New Issue
Block a user