Skip to content

Commit

Permalink
Update output message if config file is not found (#89)
Browse files Browse the repository at this point in the history
This output message should now be clearer if we can't load your config file because we can't find it.
  • Loading branch information
macebake committed Mar 11, 2024
1 parent 3c68f21 commit ee40d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/catalog-importer/cmd/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func loadConfigOrError(ctx context.Context, configFile string) (cfg *config.Conf
if configFile == "" {
OUT("No config file (--config) was provided, but is required.\n")
} else {
OUT("Failed to load config file!\n")
OUT("Failed to load config file! It's either in an unexpected format, or we can't find it using that path.\n")
}

OUT(`We expect a config file in Jsonnet, JSON or YAML format that looks like:
Expand Down

0 comments on commit ee40d75

Please sign in to comment.