Incorrect error message from ObjectId.Unpack()

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Trivial - P5
    • 1.8
    • Affects Version/s: 1.7.1
    • Component/s: None
    • None
    • Environment:
      Windows
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The new ArgumentOutOfRangeException() is incorrectly formed. It's passing a message as the parameter name. It should read;

      throw new ArgumentOutOfRangeException("bytes", "Byte array must be 12 bytes long.");

      Ideally though, it would have a bit more information relating to ObjectId.

              Assignee:
              Robert Stam
              Reporter:
              Daniel Sinclair
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: