Print error and return if clipboard.ReadAll() returns an error
This commit is contained in:
parent
66ba244ba1
commit
ea5c28ed0e
1 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue