Skip to content

Commit 4788181

Browse files
committed
report origin of yaml parsing error
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
1 parent a42e757 commit 4788181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loader/loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ func loadYamlFile(ctx context.Context,
509509
break
510510
}
511511
if err != nil {
512-
return nil, nil, err
512+
return nil, nil, fmt.Errorf("failed to parse %s: %w", file.Filename, err)
513513
}
514514
processor = reset
515515
if err := processRawYaml(raw, processor); err != nil {

0 commit comments

Comments
 (0)