Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-761

Stream builder error for invalid context is unfriendly

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.0.0-rc0
    • None
    • None
    • None

    Description

      If you build an incomplete document with the stream builder, and you try to use it as a view, the error you get is unfriendly:

      auto builder = document{} << "key" << "value" << "key";
      auto view = builder.view();
       
      > "not viewable"
      

      Attachments

        Activity

          People

            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: