Skip to content

Commit 00c64ca

Browse files
committed
Fix error handling in chat-sast command and add integration test data
1 parent 1f5c043 commit 00c64ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/commands/chat-sast.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func getSastConversationDetails(cmd *cobra.Command, chatConversationID string, s
104104
if userInput == "" {
105105
msg := fmt.Sprintf(UserInputRequiredErrorFormat, params.ChatUserInput, params.ChatConversationID)
106106
logger.PrintIfVerbose(msg)
107-
return false, "", uuid.UUID{}, outputError(cmd, uuid.Nil, errors.Errorf(msg))
107+
return false, "", uuid.UUID{}, outputError(cmd, uuid.Nil, errors.New(msg))
108108
}
109109
}
110110

0 commit comments

Comments
 (0)