Skip to content

Commit 90dc662

Browse files
committed
style: improve error message formatting in GetConversationStore
- Wrap `%s` in backticks for better error message formatting in `GetConversationStore`. - Wrap `%s` in backticks for better debug message formatting in `GetConversationStore`. Signed-off-by: codiing-hui <wecoding@yeah.net>
1 parent 1e0eeb2 commit 90dc662

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/convo/factory.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func GetConversationStore(cfg *options.Config) (Store, error) {
3333
// Create new store if it doesn't exist
3434
factory, ok := conversationStoreFactories[dsType]
3535
if !ok {
36-
return nil, fmt.Errorf("chat convo store %s is not supported", dsType)
36+
return nil, fmt.Errorf("chat convo store `%s` is not supported", dsType)
3737
}
3838

3939
newStore, err := factory.Create(cfg)
@@ -60,7 +60,7 @@ func GetConversationStore(cfg *options.Config) (Store, error) {
6060
} else {
6161
// No conversations exist, generate new ID
6262
cfg.ConversationID = NewConversationID()
63-
debug.Trace("conversation id not provided, generating new id %s", cfg.ConversationID)
63+
debug.Trace("conversation id not provided, generating new id `%s`", cfg.ConversationID)
6464
}
6565
}
6666

0 commit comments

Comments
 (0)