Skip to content

Commit

Permalink
fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tenzen-y committed Oct 10, 2021
1 parent 668cd92 commit cfc5f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/v1beta1/katibconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func GetEarlyStoppingConfigData(earlyStoppingSpec *common.EarlyStoppingSpec, cli
switch valueTypeConfigData {
case ValueTypeInt:
if _, err = strconv.Atoi(inputSetting.Value); err != nil {
return EarlyStoppingConfig{}, fmt.Errorf("%s must be integer value for early stopping algorithm name: %s", inputSetting.Value, inputSetting.Name)
return EarlyStoppingConfig{}, fmt.Errorf("%s must be integer value for early stopping algorithm setting name: %s", inputSetting.Value, inputSetting.Name)
}
default:
return EarlyStoppingConfig{}, fmt.Errorf("failed to find early stopping algorithm setings value type: %s in ConfigMap: %s", valueTypeConfigData, consts.KatibConfigMapName)
Expand Down

0 comments on commit cfc5f62

Please sign in to comment.