diff options
Diffstat (limited to 'langs/language.go')
-rw-r--r-- | langs/language.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/langs/language.go b/langs/language.go index a0294a103..d6b30ec10 100644 --- a/langs/language.go +++ b/langs/language.go @@ -14,6 +14,7 @@ package langs import ( + "fmt" "sort" "strings" "sync" @@ -22,8 +23,6 @@ import ( "golang.org/x/text/collate" "golang.org/x/text/language" - "github.com/pkg/errors" - "github.com/gohugoio/hugo/common/htime" "github.com/gohugoio/hugo/common/maps" "github.com/gohugoio/hugo/config" @@ -311,7 +310,7 @@ func GetCollator(l *Language) *Collator { func (l *Language) loadLocation(tzStr string) error { location, err := time.LoadLocation(tzStr) if err != nil { - return errors.Wrapf(err, "invalid timeZone for language %q", l.Lang) + return fmt.Errorf("invalid timeZone for language %q: %w", l.Lang, err) } l.location = location |