Skip to content

Commit

Permalink
return if diags has error
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-goenka committed Sep 24, 2024
1 parent f3d7f09 commit 5bf9163
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bundle/config/loader/process_include.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ func (m *processInclude) Apply(_ context.Context, b *bundle.Bundle) diag.Diagnos

// Add any diagnostics associated with the file format.
diags = append(diags, validateFileFormat(this, m.relPath)...)
if diags.HasError() {
return diags
}

err := b.Config.Merge(this)
if err != nil {
Expand Down

0 comments on commit 5bf9163

Please sign in to comment.