invalidForStorage should return actual error

XMLWordPrintableJSON

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

      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:
            Scott Hernandez (Inactive)
            Reporter:
            Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: