This allows an ErrorResponse to be used directly as an error type. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@@ -0,0 +1,6 @@
+package types
+
+// Error returns the error message
+func (e ErrorResponse) Error() string {
+ return e.Message
+}