Browse Source

Added missing return preventing SIGSEGV because of missing resp (#621)

Co-authored-by: Luc Stepniewski <luc@eclipse-fr.com>
Luc Stepniewski 1 năm trước cách đây
mục cha
commit
4aa0976a2e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      cmd/cmd.go

+ 1 - 0
cmd/cmd.go

@@ -647,6 +647,7 @@ func generateInteractive(cmd *cobra.Command, model string) error {
 				resp, err := server.GetModelInfo(model)
 				if err != nil {
 					fmt.Println("error: couldn't get model")
+					return err
 				}
 
 				switch args[1] {