Skip to content

Commit

Permalink
Make the the invalid CA error message actionable (#356)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Stromberg <t+github@chainguard.dev>
  • Loading branch information
tstromberg committed Jan 28, 2022
1 parent 7246b83 commit 882b239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/app/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func runServeCmd(cmd *cobra.Command, args []string) {
case "ephemeralca":
// this is a no-op since this is a self-signed in-memory CA for testing
default:
log.Logger.Fatal("unknown CA: ", viper.GetString("ca"))
log.Logger.Fatalf("--ca=%s is not a valid selection. Try: pkcs11ca, googleca, fileca, or ephemeralca", viper.GetString("ca"))
}

// Setup the logger to dev/prod
Expand Down

0 comments on commit 882b239

Please sign in to comment.