From 1ddebf6396deb724d88f9f3971b4012fd8d70898 Mon Sep 17 00:00:00 2001 From: Sam Coe Date: Mon, 12 Apr 2021 16:03:50 -0700 Subject: [PATCH] Fix trying to read from non-existent log file --- pkg/cmd/run/view/view.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/cmd/run/view/view.go b/pkg/cmd/run/view/view.go index d4d0db1f6..01fc8b3ab 100644 --- a/pkg/cmd/run/view/view.go +++ b/pkg/cmd/run/view/view.go @@ -498,6 +498,9 @@ func displayRunLog(io *iostreams.IOStreams, jobs []shared.Job, failed bool) erro if failed && !shared.IsFailureState(step.Conclusion) { continue } + if step.Log == nil { + continue + } prefix := fmt.Sprintf("%s\t%s\t", job.Name, step.Name) f, err := step.Log.Open() if err != nil {