Print error and return if clipboard.ReadAll() returns an error

This commit is contained in:
ayn2op 2023-01-23 18:57:53 +05:30
parent 66ba244ba1
commit ea5c28ed0e

View file

@ -109,7 +109,8 @@ func (mi *MessageInput) sendAction() {
func (mi *MessageInput) pasteAction() {
text, err := clipboard.ReadAll()
if err != nil {
log.Fatal(err)
log.Println(err)
return
}
// Append the text to the message input.