fixed warning in screen.go
This commit is contained in:
parent
727d8b28b7
commit
5a460a9e40
@ -1,7 +1,6 @@
|
||||
package tui
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"git.tordarus.net/Tordarus/adverr"
|
||||
@ -107,7 +106,7 @@ func (s *Screen) eventloop() {
|
||||
case *tcell.EventMouse:
|
||||
s.onMouseClicked(convertMouseEvent(event))
|
||||
default:
|
||||
s.StopWithError(errors.New(fmt.Sprintf("%#v", event)))
|
||||
s.StopWithError(fmt.Errorf("%#v", event))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user