Skip to content

Commit

Permalink
Improve error when invalid product is specified
Browse files Browse the repository at this point in the history
Issue #315
  • Loading branch information
MatthewJohn committed May 27, 2024
1 parent c129c5d commit 7733091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/param_parsing/parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func GetParameters() Params {
// Set defaults based on product
product := lib.GetProductById(params.Product)
if product == nil {
logger.Fatalf("Invalid product: " + params.Product)
logger.Fatalf("Invalid \"product\" configuration value: %q", params.Product)
} else { // Use else as there is a warning that params maybe nil, as it does not see Fatalf as a break condition
params.MirrorURL = product.GetDefaultMirrorUrl()
}
Expand Down

0 comments on commit 7733091

Please sign in to comment.