소스 검색

Merge pull request #80 from rauls5382/master

Remove source from fetch error message
Josef Jelinek 8 년 전
부모
커밋
450e84086e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      internal/driver/fetch.go

+ 1
- 1
internal/driver/fetch.go 파일 보기

@@ -388,7 +388,7 @@ func fetch(source string, duration, timeout time.Duration, ui plugin.UI) (p *pro
388 388
 func fetchURL(source string, timeout time.Duration) (io.ReadCloser, error) {
389 389
 	resp, err := httpGet(source, timeout)
390 390
 	if err != nil {
391
-		return nil, fmt.Errorf("http fetch %s: %v", source, err)
391
+		return nil, fmt.Errorf("http fetch: %v", err)
392 392
 	}
393 393
 	if resp.StatusCode != http.StatusOK {
394 394
 		return nil, fmt.Errorf("server response: %s", resp.Status)