Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1166

The extJSONValueReader should honor the error of its underlying reader

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • 2.0.0
    • None
    • JSON & ExtJSON
    • Major Change

    Description

      Currently, the extJSONValueReader will not honor the error returned by its underlying reader, and instead, will return ErrInvalidJSON. This is probably not correct, since the underlying reader could easily error out for a reason that does not have to do with invalid JSON, and in either case, this removes vital information about why there was an error.

      I believe this code should return the error from the underlying reader, err, instead of ErrInvalidJSON.

      This ticket was created from this slack thread.

      Attachments

        Activity

          People

            Unassigned Unassigned
            may.hoque@mongodb.com May Hoque
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: