diff --git a/Makefile.INCLUDE b/Makefile.INCLUDE index b54708b91..13e934329 100644 --- a/Makefile.INCLUDE +++ b/Makefile.INCLUDE @@ -30,15 +30,9 @@ MAKEFILE_DIR ?= $(realpath $(dir $(lastword $(MAKEFILE_LIST)))) BUILD_PATH = $(MAKEFILE_DIR)/.build -GO_VERSION := 1.4.2 +GO_VERSION := 1.5.1 GOOS ?= $(subst Darwin,darwin,$(subst Linux,linux,$(subst FreeBSD,freebsd,$(OS)))) -ifeq ($(GOOS),darwin) -RELEASE_SUFFIX ?= -osx$(MAC_OS_X_VERSION) -else -RELEASE_SUFFIX ?= -endif - # Never honor GOBIN, should it be set at all. unexport GOBIN diff --git a/retrieval/target.go b/retrieval/target.go index e9f6bdd2b..b9d9abe2e 100644 --- a/retrieval/target.go +++ b/retrieval/target.go @@ -429,7 +429,7 @@ func (t *Target) scrape(appender storage.SampleAppender) (err error) { req, err := http.NewRequest("GET", t.URL().String(), nil) if err != nil { - panic(err) + return err } req.Header.Add("Accept", acceptHeader)