better err msg

This commit is contained in:
tTh 2024-03-30 14:42:05 +01:00
parent 00920841d2
commit 31087627ac

View File

@ -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);
} }