Skip to content

debug msg crashes express #53

@mikegiddens

Description

@mikegiddens

In sql L96
debug('There was an error with the request %s', body.error);

There are cases where we are trying to make a request without internet service and the body message does not have a key error and so it throws a hard error and crashes the node program running. Bter to do a if (body && body.error) to keep this from happening.

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