Skip to content

Commit

Permalink
doc: typo fixtures
Browse files Browse the repository at this point in the history
"handers" should be "handlers" in some comments.

Refs: eggjs#5243.
  • Loading branch information
SEWeiTung committed Jul 26, 2023
1 parent ce50d25 commit 29355f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/docs/core/error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,17 @@ module.exports = {
onerror: {
all(err, ctx) {
// Define an error handler for all type of Response.
// Once config.all present, other type of error handers will be ignored.
// Once config.all present, other type of error handlers will be ignored.
ctx.body = 'error';
ctx.status = 500;
},
html(err, ctx) {
// html hander
// html handler
ctx.body = '<h3>error</h3>';
ctx.status = 500;
},
json(err, ctx) {
// json hander
// json handler
ctx.body = { message: 'error' };
ctx.status = 500;
},
Expand Down

0 comments on commit 29355f2

Please sign in to comment.