fix: change deprecated func (#4236)

This commit is contained in:
handsomeFu 2024-08-26 20:32:02 +08:00 committed by GitHub
parent 5ca746b021
commit 577cc85851
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import type { NitroErrorHandler } from 'nitropack';
const errorHandler: NitroErrorHandler = function (error, event) {
event.res.end(`[error handler] ${error.stack}`);
event.node.res.end(`[Error Handler] ${error.stack}`);
};
export default errorHandler;