Skip to content

Commit e0b61c9

Browse files
committed
xwiimote: adjust error check
1 parent 327f8e2 commit e0b61c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vapi/xwiimote.vapi

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ namespace XWiimote {
1313
[CCode (cname = "EAGAIN")]
1414
private const int EAGAIN;
1515

16-
// This is pretty stupid
1716
private int error_check(int ret) throws GLib.IOError {
1817
if (ret >= 0) return ret;
19-
throw new GLib.IOError.FAILED(GLib.strerror(-ret));
18+
throw GLib.IOError.from_errno(-ret);
2019
}
2120
}
2221

0 commit comments

Comments
 (0)