Improve 'mode' error message (#681)

## Changes

`unsupported value specified for 'mode': %s` was not a helpful error
message.
This commit is contained in:
Lennart Kats (databricks) 2023-08-21 11:09:08 +02:00 committed by GitHub
parent c25bc041b1
commit e1ca24d5d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ func (m *processTargetMode) Apply(ctx context.Context, b *bundle.Bundle) error {
case "":
// No action
default:
return fmt.Errorf("unsupported value specified for 'mode': %s", b.Config.Bundle.Mode)
return fmt.Errorf("unsupported value '%s' specified for 'mode': must be either 'development' or 'production'", b.Config.Bundle.Mode)
}
return nil