vue-vben-admin/apps/backend-mock/error.ts

8 lines
208 B
TypeScript
Raw Normal View History

import type { NitroErrorHandler } from 'nitropack';
const errorHandler: NitroErrorHandler = function (error, event) {
2024-08-26 20:32:02 +08:00
event.node.res.end(`[Error Handler] ${error.stack}`);
};
export default errorHandler;