summaryrefslogtreecommitdiffstats
path: root/tpl/data/resources.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/data/resources.go')
-rw-r--r--tpl/data/resources.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/tpl/data/resources.go b/tpl/data/resources.go
index dca25efb2..0470faf51 100644
--- a/tpl/data/resources.go
+++ b/tpl/data/resources.go
@@ -15,14 +15,13 @@ package data
import (
"bytes"
+ "fmt"
"io/ioutil"
"net/http"
"net/url"
"path/filepath"
"time"
- "github.com/pkg/errors"
-
"github.com/gohugoio/hugo/cache/filecache"
"github.com/gohugoio/hugo/config"
@@ -70,7 +69,7 @@ func (ns *Namespace) getRemote(cache *filecache.Cache, unmarshal func([]byte) (b
res.Body.Close()
if isHTTPError(res) {
- return nil, errors.Errorf("Failed to retrieve remote file: %s, body: %q", http.StatusText(res.StatusCode), b)
+ return nil, fmt.Errorf("Failed to retrieve remote file: %s, body: %q", http.StatusText(res.StatusCode), b)
}
retry, err = unmarshal(b)