mirror of https://github.com/databricks/cli.git
Improve 'mode' error message (#681)
## Changes `unsupported value specified for 'mode': %s` was not a helpful error message.
This commit is contained in:
parent
c25bc041b1
commit
e1ca24d5d5
|
@ -182,7 +182,7 @@ func (m *processTargetMode) Apply(ctx context.Context, b *bundle.Bundle) error {
|
||||||
case "":
|
case "":
|
||||||
// No action
|
// No action
|
||||||
default:
|
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
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue