mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-23 09:40:25 +08:00
fix: change deprecated func (#4236)
This commit is contained in:
parent
5ca746b021
commit
577cc85851
@ -1,7 +1,7 @@
|
|||||||
import type { NitroErrorHandler } from 'nitropack';
|
import type { NitroErrorHandler } from 'nitropack';
|
||||||
|
|
||||||
const errorHandler: NitroErrorHandler = function (error, event) {
|
const errorHandler: NitroErrorHandler = function (error, event) {
|
||||||
event.res.end(`[error handler] ${error.stack}`);
|
event.node.res.end(`[Error Handler] ${error.stack}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default errorHandler;
|
export default errorHandler;
|
||||||
|
Loading…
Reference in New Issue
Block a user