athis-ui/apps/backend-mock/error.ts

8 lines
208 B
TypeScript
Raw Normal View History

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