Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kuklyy committed Oct 2, 2024
1 parent cc19df1 commit 20805f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifest/v1alpha/slo/metrics_gcm.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ var gcmValidation = govy.New[GCMMetric](
configOptions++
}
if configOptions != 1 {
return errors.New("exactly one of configuration option is required [query, promqlQuery]")
return errors.New("exactly one of configuration option is required, the available types [MQL, PromQL]" +
" are represented by the following properties: MQL{query}; PromQL{promqlQuery}")
}
return nil
}).WithErrorCode(rules.ErrorCodeOneOf),
Expand Down

0 comments on commit 20805f6

Please sign in to comment.