@@ -27,7 +27,6 @@ import (
2727
2828 ctclient "github.com/google/certificate-transparency-go/client"
2929 "github.com/google/certificate-transparency-go/jsonclient"
30- "github.com/pkg/errors"
3130 "github.com/prometheus/client_golang/prometheus"
3231 "github.com/prometheus/client_golang/prometheus/promhttp"
3332 certauth "github.com/sigstore/fulcio/pkg/ca"
@@ -253,11 +252,11 @@ func runServeCmd(cmd *cobra.Command, args []string) {
253252func checkServeCmdConfigFile () error {
254253 if serveCmdConfigFilePath != "" {
255254 if _ , err := os .Stat (serveCmdConfigFilePath ); err != nil {
256- return errors . Wrap ( err , "unable to stat config file provided" )
255+ return fmt . Errorf ( "unable to stat config file provided: %w" , err )
257256 }
258257 abspath , err := filepath .Abs (serveCmdConfigFilePath )
259258 if err != nil {
260- return errors . Wrap ( err , "unable to determine absolute path of config file provided" )
259+ return fmt . Errorf ( "unable to determine absolute path of config file provided: %w" , err )
261260 }
262261 extWithDot := filepath .Ext (abspath )
263262 ext := strings .TrimPrefix (extWithDot , "." )
@@ -275,7 +274,7 @@ func checkServeCmdConfigFile() error {
275274 viper .SetConfigType (ext )
276275 viper .AddConfigPath (filepath .Dir (serveCmdConfigFilePath ))
277276 if err := viper .ReadInConfig (); err != nil {
278- return errors . Wrap ( err , "unable to parse config file provided" )
277+ return fmt . Errorf ( "unable to parse config file provided: %w" , err )
279278 }
280279 }
281280 return nil
0 commit comments