Skip to content

Commit 1ddebf6

Browse files
committed
Fix trying to read from non-existent log file
1 parent 3f3c8f2 commit 1ddebf6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/cmd/run/view/view.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,9 @@ func displayRunLog(io *iostreams.IOStreams, jobs []shared.Job, failed bool) erro
498498
if failed && !shared.IsFailureState(step.Conclusion) {
499499
continue
500500
}
501+
if step.Log == nil {
502+
continue
503+
}
501504
prefix := fmt.Sprintf("%s\t%s\t", job.Name, step.Name)
502505
f, err := step.Log.Open()
503506
if err != nil {

0 commit comments

Comments
 (0)