From ca002d0f447f0e9d7a71cd502a20b63277a612ce Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Fri, 30 Dec 2016 14:44:00 -0800 Subject: updating error in addond and checking for nil prior to clling method on err --- system/addon/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/addon') 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 } -- cgit v1.2.3