summaryrefslogtreecommitdiff
path: root/system/addon/api.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-30 14:44:00 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-30 14:44:00 -0800
commitca002d0f447f0e9d7a71cd502a20b63277a612ce (patch)
treef5d7913215bb6b9c38946912f4d917083cdb76f8 /system/addon/api.go
parent9d366bea7c540edc767ebab9f6a0ace26c25e5fe (diff)
updating error in addond and checking for nil prior to clling method on err
Diffstat (limited to 'system/addon/api.go')
-rw-r--r--system/addon/api.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/addon/api.go b/system/addon/api.go
index 39f1b4d..7167202 100644
--- a/system/addon/api.go
+++ b/system/addon/api.go
@@ -25,7 +25,7 @@ func ContentAll(namespace string) []byte {
j, err := Get(URL)
if err != nil {
- log.Println("Error in ContentAll for reference HTTP request:", endpoint)
+ log.Println("Error in ContentAll for reference HTTP request:", URL)
return nil
}
@@ -42,7 +42,7 @@ func Query(namespace string, opts QueryOptions) []byte {
j, err := Get(URL)
if err != nil {
- log.Println("Error in Query for reference HTTP request:", endpoint)
+ log.Println("Error in Query for reference HTTP request:", URL)
return nil
}