You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ne...@apache.org on 2017/01/05 19:47:04 UTC

[03/11] incubator-trafficcontrol git commit: Add TM2 fetch error ID and URL info

Add TM2 fetch error ID and URL info


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/0f866fa4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/0f866fa4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/0f866fa4

Branch: refs/heads/master
Commit: 0f866fa4aee61152e3e7389c33fbaa70b5b78820
Parents: 93adeaf
Author: Robert Butts <ro...@gmail.com>
Authored: Fri Dec 9 15:05:22 2016 -0700
Committer: Dave Neuman <ne...@apache.org>
Committed: Thu Jan 5 12:46:32 2017 -0700

----------------------------------------------------------------------
 traffic_monitor/experimental/common/fetcher/fetcher.go | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0f866fa4/traffic_monitor/experimental/common/fetcher/fetcher.go
----------------------------------------------------------------------
diff --git a/traffic_monitor/experimental/common/fetcher/fetcher.go b/traffic_monitor/experimental/common/fetcher/fetcher.go
index 6534661..6613897 100644
--- a/traffic_monitor/experimental/common/fetcher/fetcher.go
+++ b/traffic_monitor/experimental/common/fetcher/fetcher.go
@@ -8,9 +8,9 @@ package fetcher
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -19,7 +19,6 @@ package fetcher
  * under the License.
  */
 
-
 import (
 	"fmt"
 	"io/ioutil"
@@ -83,7 +82,7 @@ func (f HttpFetcher) Fetch(id string, url string, pollId uint64, pollFinishedCha
 		err = fmt.Errorf("bad status: %v", response.StatusCode)
 	}
 	if err != nil {
-		err = fmt.Errorf("fetch error: %v", err)
+		err = fmt.Errorf("id %v url %v fetch error: %v", id, url, err)
 	}
 
 	if err == nil && response != nil {