Skip to content

Commit

Permalink
Fix segfault in pipeline view (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
jradtilbrook authored Sep 9, 2024
1 parent d00f049 commit 3e63573
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cmd/pipeline/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ func NewCmdPipelineView(f *factory.Factory) *cobra.Command {
if err != nil {
return err
}
if resp == nil || resp.Pipeline == nil {
fmt.Fprintf(cmd.OutOrStdout(), "Could not find pipeline: %s\n", slug)
return nil
}

var output strings.Builder

Expand Down

0 comments on commit 3e63573

Please sign in to comment.