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

Stream builder error for invalid context is unfriendly

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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"
      

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

              Created:
              Updated:
              Resolved: