Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1813

Expose code in error message

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.4.4
    • Component/s: Error Handling
    • None

      Currently the `.Error()` methods simply return the content of the `Message` fields. It's not possible to see what is the error code from the error message returned by `.Error()`.

      Yes I know I can inspect the `WriteError` object, but I think it would be more user friendly to expose the code in the human readable error message returned by `Error()`.

      I think the other drivers (Nodejs or PHP) are already printing the error code. 

            Assignee:
            Unassigned Unassigned
            Reporter:
            pierrre Pierre Durand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: