Skip to content

Commit

Permalink
fix: change deprecated func (#4236)
Browse files Browse the repository at this point in the history
  • Loading branch information
fzq1998 authored Aug 26, 2024
1 parent 5ca746b commit 577cc85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend-mock/error.ts
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 577cc85

Please sign in to comment.