Skip to content

Commit a3170ba

Browse files
authored
Merge pull request #2316 from onflow/leo/add-script-path-to-failed-tests
add script path to failed tests
2 parents 88729a7 + ce3ae37 commit a3170ba

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)