Skip to content

Commit 58631a9

Browse files
committed
fix: enhance error handling in ListContextsByteConvoID with descriptive wrapping
- Wrap the error returned from `ListContextsByteConvoID` with a descriptive message using `errbook.Wrap`. Signed-off-by: codiing-hui <wecoding@yeah.net>
1 parent 2c9a73d commit 58631a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/cli/loadctx/list.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ func (o *list) Run() error {
5454
// Get contexts for current conversation
5555
ctxs, err := o.convoStore.ListContextsByteConvoID(context.Background(), o.cfg.ConversationID)
5656
if err != nil {
57+
return errbook.Wrap("failed to list contexts", err)
5758
}
5859

5960
if len(ctxs) == 0 {

0 commit comments

Comments
 (0)