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

db.eval exceptions not propagated to client

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.8.0-rc1
    • Component/s: JavaScript
    • Labels:
      None
    • Minor Change
    • ALL

      >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.

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

              Created:
              Updated:
              Resolved: