diff --git a/pkg/cmd/gist/edit/edit.go b/pkg/cmd/gist/edit/edit.go index 3480993f5..76285ed6a 100644 --- a/pkg/cmd/gist/edit/edit.go +++ b/pkg/cmd/gist/edit/edit.go @@ -100,6 +100,10 @@ func editRun(opts *EditOptions) error { Message: "Edit which file?", Options: candidates, }, &filename) + + if err != nil { + return fmt.Errorf("could not prompt: %w", err) + } } }