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

invalidForStorage should return actual error

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.6.0-rc1
    • 2.6.0-rc0
    • JavaScript
    • None
    • Fully Compatible

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: