Replace github.com/pkg/errors with stdlib errors/fmt (#2400)

This commit is contained in:
James Raspass
2024-03-16 08:10:49 +00:00
committed by GitHub
parent 05b76852bd
commit 5d887cbd41
4 changed files with 4 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"context"
"errors"
"fmt"
"os"
"path/filepath"
@@ -15,7 +16,6 @@ import (
"github.com/Jguer/aur/metadata"
"github.com/leonelquinteros/gotext"
"github.com/pkg/errors"
)
func handleCmd(logger *text.Logger) error {
@@ -43,7 +43,7 @@ func handleCmd(logger *text.Logger) error {
metadata.WithCacheFilePath(
filepath.Join(cfg.BuildDir, "aur.json")))
if err != nil {
return errors.Wrap(err, gotext.Get("failed to retrieve aur Cache"))
return fmt.Errorf("%s: %w", gotext.Get("failed to retrieve aur Cache"), err)
}
grapher := dep.NewGrapher(dbExecutor, aurCache, true, settings.NoConfirm,