log plugin errors

This commit is contained in:
Unrud 2018-07-31 20:19:05 +02:00
parent fe568cd37c
commit 2eb0baaca1
6 changed files with 25 additions and 15 deletions

View file

@ -75,7 +75,7 @@ func InitWindowsPlugin() (Plugin, error) {
p.userDLL = syscall.NewLazyDLL("user32.dll")
p.sendInputProc = p.userDLL.NewProc("SendInput")
if err := p.sendInputProc.Find(); err != nil {
return nil, UnsupportedPlatformError{"Windows", err.Error()}
return nil, UnsupportedPlatformError{err}
}
return p, nil
}