Skip to content

Commit

Permalink
Fix bad grammar in the fail handler error message (#2271)
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeniyBurmistrov authored Apr 21, 2022
1 parent 1df44e7 commit 7553e35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ describe('runtime', () => {
expect(result).toEqual({
statusCode: 405,
headers: {},
body: 'GET "/": handler not exist',
body: 'GET "/": handler does not exist',
})
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const failHandler = async (
{ method, path }: ResolveRequest,
res: ResolveResponse
) => {
const errorText = `${method} "${path}": handler not exist`
const errorText = `${method} "${path}": handler does not exist`
await res.status(405)
await res.end(errorText)
log.warn(errorText)
Expand Down

0 comments on commit 7553e35

Please sign in to comment.