aboutsummaryrefslogtreecommitdiff
path: root/provider.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-01-14 01:21:57 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-01-14 01:21:57 +0100
commitf835c565941cbb2cd4adb62ab40db476a8318335 (patch)
tree773d2aeefa2d5b481f38acc7213fe58179c98a08 /provider.go
parentdaf5a7d875e9744abf462c09b1a5cef77a98e9fd (diff)
Omit confusion with Error interface
Diffstat (limited to 'provider.go')
-rw-r--r--provider.go4
1 files changed, 2 insertions, 2 deletions
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
}