aboutsummaryrefslogtreecommitdiff
path: root/messages.go
diff options
context:
space:
mode:
Diffstat (limited to 'messages.go')
-rw-r--r--messages.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/messages.go b/messages.go
index 6a2846b..7546088 100644
--- a/messages.go
+++ b/messages.go
@@ -72,6 +72,10 @@ type Problem struct {
Err error `json:"-"`
}
+func (p Problem) Error() string {
+ return p.Detail
+}
+
// Status of request
type Status int