Skip to content
This repository was archived by the owner on Jan 24, 2026. It is now read-only.
This repository was archived by the owner on Jan 24, 2026. It is now read-only.

Default error handling #1

@kesla

Description

@kesla

Yo!

What is the reasoning behind demanding each http-server to have it's own implementation of opts.error? Aren't most (if not all) of our modules going to be something like this:

error: function (err) {

            // HTTP handling
            this.res.statusCode = err.statusCode;
            this.res.end(JSON.stringify({msg: err.message}));

            // bunyan
            this.log.error({err: err});
        }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions