Skip to content

Differences in JSON error handling #37

@ryanblock

Description

@ryanblock

Not sure what the history is here, but there's currently differentiation in handling JSON errors:

  • get: err.body = isJSON? JSON.stringify(result) : result.toString() (code)
  • !get: err.body = result (code)

These should probably be the same – either is fine imo, but given the nature of the library, probably passing the parsed version back prob makes more sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions