Skip to content

Missing two error codes #1334

@mcollina

Description

@mcollina
  • throw new Error('You cannot use `send` inside the `onError` hook')
  • reply.res.log.error({ err: new Error(`Promise may not be fulfilled with 'undefined' when statusCode is not 204`) }, `Promise may not be fulfilled with 'undefined' when statusCode is not 204`)

I propose we fix those before 2.0.0 is out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions