Skip to content

Commit

Permalink
fix: Better explanation if config has error
Browse files Browse the repository at this point in the history
  • Loading branch information
guerinoni committed Dec 2, 2024
1 parent 9bd0b61 commit d850232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func New(ctx context.Context) (*Command, error) {
c.PrintErrln("Running without a configuration file")
} else {
// Config file was found but another error was produced
c.PrintErrf("Error running with config file: %s\n", viper.ConfigFileUsed())
c.PrintErrf("Error running with config file %s: %s\n", viper.ConfigFileUsed(), err.Error())
}
}
}
Expand Down

0 comments on commit d850232

Please sign in to comment.