From 31087627ac2412f52c94e4a87238207e412054a3 Mon Sep 17 00:00:00 2001 From: tTh Date: Sat, 30 Mar 2024 14:42:05 +0100 Subject: [PATCH] better err msg --- osc-joy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osc-joy.c b/osc-joy.c index 152da8e..a227431 100644 --- a/osc-joy.c +++ b/osc-joy.c @@ -90,9 +90,12 @@ if (verbosity) { } lo_address t = lo_address_new(remote_host, remote_port); +/* + * XXX no error check ? wtf ? + */ 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); }