From 6839b39f54ca27fec1acdebbc8f1c36a715a8ae9 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 20 Dec 2015 21:14:03 +0100 Subject: Simplify --- messages.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'messages.go') 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 -- cgit v1.2.3