better err msg
This commit is contained in:
parent
00920841d2
commit
31087627ac
@ -90,9 +90,12 @@ if (verbosity) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lo_address t = lo_address_new(remote_host, remote_port);
|
lo_address t = lo_address_new(remote_host, remote_port);
|
||||||
|
/*
|
||||||
|
* XXX no error check ? wtf ?
|
||||||
|
*/
|
||||||
|
|
||||||
if( ( joy_fd = open(joy_device , O_RDONLY)) == -1 ) {
|
if( ( joy_fd = open(joy_device , O_RDONLY)) == -1 ) {
|
||||||
fprintf(stderr, "Couldn't open %s\n", joy_device);
|
fprintf(stderr, "%s: Couldn't open %s\n", argv[0], joy_device);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user