toJSON() should return after throwing for bson_reader_read() failure

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 1.1.3
    • Affects Version/s: 1.1.2
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If bson_reader_read() fails, an exception is thrown; however, we still make an additional call to check for EOF, which may itself throw a separate exception (capturing the original under getPrevious()). We should return after the first exception is thrown.

            Assignee:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: