Skip to content

Commit ce3ae37

Browse files
committed
add script path to failed tests
1 parent 88729a7 commit ce3ae37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/test/test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ func testCode(
421421

422422
for r := range resultCh {
423423
if r.err != nil && firstErr == nil {
424-
firstErr = r.err
424+
firstErr = fmt.Errorf("error in test file %q: %w", r.scriptPath, r.err)
425425
}
426426
if r.results != nil {
427427
testResults[r.scriptPath] = r.results

0 commit comments

Comments
 (0)