Handle empty reply
This commit is contained in:
parent
22e0ff4115
commit
681b52a55c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user