We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54aada1 commit b4839e2Copy full SHA for b4839e2
cmd/src/main.go
@@ -3,7 +3,6 @@ package main
3
import (
4
"encoding/json"
5
"flag"
6
- "fmt"
7
"io"
8
"log"
9
"net"
@@ -284,7 +283,7 @@ func readConfig() (*config, error) {
284
283
// no SRC_PROXY; check for the standard proxy env variables HTTP_PROXY, HTTPS_PROXY, and NO_PROXY
285
if u, err := http.ProxyFromEnvironment(&http.Request{URL: cfg.endpointURL}); err != nil {
286
// when there's an error, the value for the env variable is not a legit URL
287
- return nil, fmt.Errorf("Invalid HTTP_PROXY or HTTPS_PROXY value: %w", err)
+ return nil, errors.Newf("invalid HTTP_PROXY or HTTPS_PROXY value: %w", err)
288
} else {
289
cfg.proxyURL = u
290
}
0 commit comments