Skip to content

Question: Is it possible to overwrite formatErrorMessage? #329

@BradHarrington

Description

@BradHarrington

Currently, if the object being logged is an Error and the type is "pretty" then the message resulting from formatErrorMessage() doesn't stringify any objects that are attributes of the Error. You just get [object Object].

How can I overwrite formatErrorMessage() to control what the resulting string looks like?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions