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

The extJSONValueReader should honor the error of its underlying reader

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.0
    • Affects Version/s: None
    • Component/s: JSON & ExtJSON
    • Labels:
    • Major Change

      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.

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

              Created:
              Updated: