Added missing return preventing SIGSEGV because of missing resp (#621)
Co-authored-by: Luc Stepniewski <luc@eclipse-fr.com>
This commit is contained in:
parent
92c20fdae6
commit
4aa0976a2e
1 changed files with 1 additions and 0 deletions
|
@ -647,6 +647,7 @@ func generateInteractive(cmd *cobra.Command, model string) error {
|
||||||
resp, err := server.GetModelInfo(model)
|
resp, err := server.GetModelInfo(model)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("error: couldn't get model")
|
fmt.Println("error: couldn't get model")
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
switch args[1] {
|
switch args[1] {
|
||||||
|
|
Loading…
Add table
Reference in a new issue