diff --git a/packages/runtime/runtimes/runtime-aws-serverless/test/index.test.ts b/packages/runtime/runtimes/runtime-aws-serverless/test/index.test.ts index a55b8df08..4093a1a41 100644 --- a/packages/runtime/runtimes/runtime-aws-serverless/test/index.test.ts +++ b/packages/runtime/runtimes/runtime-aws-serverless/test/index.test.ts @@ -205,7 +205,7 @@ describe('runtime', () => { expect(result).toEqual({ statusCode: 405, headers: {}, - body: 'GET "/": handler not exist', + body: 'GET "/": handler does not exist', }) }) diff --git a/packages/runtime/runtimes/runtime-base/src/handlers/fail-handler.ts b/packages/runtime/runtimes/runtime-base/src/handlers/fail-handler.ts index 68da5694b..20d941ca1 100644 --- a/packages/runtime/runtimes/runtime-base/src/handlers/fail-handler.ts +++ b/packages/runtime/runtimes/runtime-base/src/handlers/fail-handler.ts @@ -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)