mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-23 01:30:26 +08:00
8 lines
208 B
TypeScript
8 lines
208 B
TypeScript
import type { NitroErrorHandler } from 'nitropack';
|
|
|
|
const errorHandler: NitroErrorHandler = function (error, event) {
|
|
event.node.res.end(`[Error Handler] ${error.stack}`);
|
|
};
|
|
|
|
export default errorHandler;
|