diff --git a/archive/tar_windows.go b/archive/tar_windows.go index 1c52f3a..634442b 100644 --- a/archive/tar_windows.go +++ b/archive/tar_windows.go @@ -10,7 +10,7 @@ import ( "github.com/docker/docker/pkg/system" ) -// canonicalTarNameForPath returns platform-specific filepath +// tarName returns platform-specific filepath // to canonical posix-style path for tar archival. p is relative // path. func tarName(p string) (string, error) { diff --git a/cmd/ctr/pprof.go b/cmd/ctr/pprof.go index b6bebca..c0d54f2 100644 --- a/cmd/ctr/pprof.go +++ b/cmd/ctr/pprof.go @@ -8,6 +8,8 @@ import ( "os" "time" + "github.com/pkg/errors" + "github.com/urfave/cli" ) @@ -175,7 +177,7 @@ func httpGetRequest(client *http.Client, request string) (io.ReadCloser, error) return nil, err } if resp.StatusCode != 200 { - return nil, fmt.Errorf("%s", resp.Status) + return nil, errors.Errorf("http get failed with status: %s", resp.Status) } return resp.Body, nil }