Skip to content

Commit

Permalink
Error wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrondier committed Jan 21, 2025
1 parent 0f17a57 commit 9dcf71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exoscale/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func validateBool(b bool) schema.SchemaValidateDiagFunc {
return validation.ToDiagFunc(func(i interface{}, k string) (s []string, es []error) {
value, err := strconv.ParseBool(i.(string))
if err != nil {
es = append(es, fmt.Errorf("expected type of %s to be bool", k))
es = append(es, fmt.Errorf("expected type of %s to be bool: %w", k, err))
return
}

Expand Down

0 comments on commit 9dcf71e

Please sign in to comment.