Include missing rune, key or button in error
This commit is contained in:
parent
6f03281fc7
commit
124152f7ec
4 changed files with 10 additions and 9 deletions
|
|
@ -33,6 +33,7 @@ package inputcontrol
|
|||
import "C"
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
|
@ -309,7 +310,7 @@ func (p *x11Controller) PointerButton(button PointerButton, press bool) error {
|
|||
case PointerButtonMiddle:
|
||||
return p.sendButton(2, press)
|
||||
default:
|
||||
return errors.New("unsupported pointer button")
|
||||
return fmt.Errorf("unsupported pointer button: %#v", button)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue