about summary refs log tree commit diff stats
path: root/internal/config/fetcher.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config/fetcher.go')
-rw-r--r--internal/config/fetcher.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/config/fetcher.go b/internal/config/fetcher.go
index fd95b32..fca6cb1 100644
--- a/internal/config/fetcher.go
+++ b/internal/config/fetcher.go
@@ -4,6 +4,7 @@ import (
 	"fmt"
 
 	"github.com/stoewer/go-strcase"
+	"gitlab.com/tozd/go/errors"
 )
 
 type Fetcher int
@@ -37,7 +38,7 @@ func ParseFetcher(name string) (Fetcher, error) {
 	case "download":
 		return Download, nil
 	default:
-		return UnknownFetcher, fmt.Errorf("unsupported fetcher %s", name)
+		return UnknownFetcher, errors.Errorf("unsupported fetcher %s", name)
 	}
 }