Skip to content

Commit 664a82d

Browse files
authored
Update error messages (#1291)
1 parent c095a06 commit 664a82d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/types/clusterconfig/errors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func ErrorOnDemandBaseCapacityGreaterThanMax(onDemandBaseCapacity int64, max int
150150
func ErrorConfigCannotBeChangedOnUpdate(configKey string, prevVal interface{}) error {
151151
return errors.WithStack(&errors.Error{
152152
Kind: ErrConfigCannotBeChangedOnUpdate,
153-
Message: fmt.Sprintf("modifying %s in a running cluster is not supported, please set %s to its previous value: %s", configKey, configKey, s.UserStr(prevVal)),
153+
Message: fmt.Sprintf("modifying %s in a running cluster is not supported, please set %s to its previous value (%s)", configKey, configKey, s.UserStr(prevVal)),
154154
})
155155
}
156156

@@ -246,6 +246,6 @@ func ErrorCantOverrideDefaultTag() error {
246246
func ErrorSSLCertificateARNNotFound(sslCertificateARN string, region string) error {
247247
return errors.WithStack(&errors.Error{
248248
Kind: ErrSSLCertificateARNNotFound,
249-
Message: fmt.Sprintf("unable to find the specified ssl certificate in region %s: %s", region, sslCertificateARN),
249+
Message: fmt.Sprintf("unable to find the specified ssl certificate in %s: %s", region, sslCertificateARN),
250250
})
251251
}

pkg/types/spec/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ func ErrorInvalidTensorFlowModelPath() error {
267267
func ErrorMissingModel(predictorType userconfig.PredictorType) error {
268268
return errors.WithStack(&errors.Error{
269269
Kind: ErrMissingModel,
270-
Message: fmt.Sprintf("at least one model must be specified for %s predictor type; use fields %s:%s or %s:%s to add model(s)", predictorType, userconfig.PredictorKey, userconfig.ModelPathKey, userconfig.PredictorKey, userconfig.ModelsKey),
270+
Message: fmt.Sprintf("at least one model must be specified for the %s predictor type; use fields %s.%s or %s.%s to add model(s)", predictorType, userconfig.PredictorKey, userconfig.ModelPathKey, userconfig.PredictorKey, userconfig.ModelsKey),
271271
})
272272
}
273273

0 commit comments

Comments
 (0)