Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-314

Minor typo in exception message

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 2.5
    • Component/s: None
    • Labels:
      None

      While testing query failures, I intentionally passed an illegal token "$barf" to an update query. This correctly results in an exception. But note the missing " " between the word "specified" and "$barf".

      jvm 1 | com.mongodb.MongoException: Invalid modifier specified$barf
      jvm 1 | at com.mongodb.DBTCPConnector._checkWriteError(DBTCPConnector.java:141)
      jvm 1 | at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:162)
      jvm 1 | at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:146)
      jvm 1 | at com.mongodb.DBApiLayer$MyCollection.update(DBApiLayer.java:335)

      Cheers,
      Leif

            Assignee:
            antoine Antoine Girbal
            Reporter:
            leif Leif Mortenson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: