mirror of https://github.com/databricks/cli.git
return if diags has error
This commit is contained in:
parent
f3d7f09150
commit
5bf916357a
|
@ -173,6 +173,9 @@ func (m *processInclude) Apply(_ context.Context, b *bundle.Bundle) diag.Diagnos
|
||||||
|
|
||||||
// Add any diagnostics associated with the file format.
|
// Add any diagnostics associated with the file format.
|
||||||
diags = append(diags, validateFileFormat(this, m.relPath)...)
|
diags = append(diags, validateFileFormat(this, m.relPath)...)
|
||||||
|
if diags.HasError() {
|
||||||
|
return diags
|
||||||
|
}
|
||||||
|
|
||||||
err := b.Config.Merge(this)
|
err := b.Config.Merge(this)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue