return if diags has error

This commit is contained in:
Shreyas Goenka 2024-09-24 17:42:03 +02:00
parent f3d7f09150
commit 5bf916357a
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 3 additions and 0 deletions

View File

@ -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 {