admin-vben/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 12:32:02 +00:00
event.node.res.end(`[Error Handler] ${error.stack}`);
};
export default errorHandler;