log plugin errors
This commit is contained in:
parent
fe568cd37c
commit
2eb0baaca1
6 changed files with 25 additions and 15 deletions
|
|
@ -43,7 +43,8 @@ type x11Plugin struct {
|
|||
func InitX11Plugin() (Plugin, error) {
|
||||
display := C.XOpenDisplay(nil)
|
||||
if display == nil {
|
||||
return nil, UnsupportedPlatformError{"X11", "failed to connect to X server"}
|
||||
return nil, UnsupportedPlatformError{
|
||||
errors.New("failed to connect to X server")}
|
||||
}
|
||||
return &x11Plugin{display: display}, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue