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