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

db.eval exceptions not propagated to client

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 1.8.0-rc1
    • JavaScript
    • None
    • Minor Change
    • ALL

    Description

      >db.test1.save({_id:1})
      >f = function() {db.test1.update({_id:1}, {_id:2, other:true})}
      >db.eval(f)
      null
      >f()
      cannot change _id ....

      It seems like the dbeval case should return a doc with the error.

      Attachments

        Activity

          People

            Unassigned Unassigned
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: