fix: change deprecated func (#4236)
This commit is contained in:
parent
5ca746b021
commit
577cc85851
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue