aboutsummaryrefslogtreecommitdiff
path: root/messages.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-20 21:14:03 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-20 21:14:03 +0100
commit6839b39f54ca27fec1acdebbc8f1c36a715a8ae9 (patch)
tree69609e1bb9b008eddbe4cf4410a5d47772ffac87 /messages.go
parent442b0b50caafaed87047556dd312928e0605ba37 (diff)
Simplify
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