Expose code in error message

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.4.4
    • Component/s: Error Handling
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Pierre Durand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: