Handle empty reply
This commit is contained in:
@@ -236,6 +236,9 @@ var replyCmd = &cobra.Command{
|
||||
}
|
||||
|
||||
messageContents, err := InputFromEditor("# How would you like to reply?\n", "reply.*.md")
|
||||
if messageContents == "" {
|
||||
Fatal("No reply was provided.\n")
|
||||
}
|
||||
|
||||
userReply := Message{
|
||||
ConversationID: conversation.ID,
|
||||
|
||||
Reference in New Issue
Block a user