Explorar el Código

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

Co-authored-by: Luc Stepniewski <luc@eclipse-fr.com>
Luc Stepniewski hace 1 año
padre
commit
4aa0976a2e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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] {