From f835c565941cbb2cd4adb62ab40db476a8318335 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 14 Jan 2016 01:21:57 +0100 Subject: Omit confusion with Error interface --- messages.go | 2 +- provider.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/messages.go b/messages.go index ad2b741..eca566d 100644 --- a/messages.go +++ b/messages.go @@ -62,7 +62,7 @@ type Challenge struct { URI string `json:"uri,omitempty"` Validated *time.Time `json:"validated,omitempty"` KeyAuthorization string `json:"keyAuthorization,omitempty"` - Error *Problem `json:"error,omitempty"` + Err *Problem `json:"error,omitempty"` Solver `json:"-"` } diff --git a/provider.go b/provider.go index cc1c46c..91f91e4 100644 --- a/provider.go +++ b/provider.go @@ -235,8 +235,8 @@ func (p *Provider) queryStatus(url string) (bool, error) { return false, err } log.Println("status", r.Status) - if r.Error != nil { - return false, r.Error + if r.Err != nil { + return false, r.Err } return r.Status == StatusValid, nil } -- cgit v1.2.3