Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12838

invalidForStorage should return actual error

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc1
    • Affects Version/s: 2.6.0-rc0
    • Component/s: JavaScript
    • None
    • Fully Compatible

      upgradeCheck() uses Object.invalidForStorage() and then prints the error that the method returns. Unfortunately it's not a useful message:

      > doc1={"foo.bar":1}
      { "foo.bar" : 1 }
      > doc2={"$bar":1}
      { "$bar" : 1 }
      > Object.invalidForStorage(doc1)
      Unknown Error
      > Object.invalidForStorage(doc2)
      Unknown Error
      

            Assignee:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: