Private
Public Access
1
0

lmcli chat: check that conversation exists

This commit is contained in:
2024-05-20 16:07:38 +00:00
parent dc1edf8c3e
commit f6e55f6bff
2 changed files with 9 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ func LookupConversation(ctx *lmcli.Context, shortName string) *model.Conversatio
lmcli.Fatal("Could not lookup conversation: %v\n", err)
}
if c.ID == 0 {
lmcli.Fatal("Conversation not found with short name: %s\n", shortName)
lmcli.Fatal("Conversation not found: %s\n", shortName)
}
return c
}
@@ -68,7 +68,7 @@ func LookupConversationE(ctx *lmcli.Context, shortName string) (*model.Conversat
return nil, fmt.Errorf("Could not lookup conversation: %v", err)
}
if c.ID == 0 {
return nil, fmt.Errorf("Conversation not found with short name: %s", shortName)
return nil, fmt.Errorf("Conversation not found: %s", shortName)
}
return c, nil
}