From fabec4a94cd277787d4692ba805c42bddcd61b22 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sun, 30 May 2021 06:48:12 -0500 Subject: [PATCH] Improve rig_open error msg in rigctl.c and rigctld.c --- tests/rigctl.c | 2 +- tests/rigctld.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/rigctl.c b/tests/rigctl.c index fcb77a37f..2a9437b01 100644 --- a/tests/rigctl.c +++ b/tests/rigctl.c @@ -552,7 +552,7 @@ int main(int argc, char *argv[]) if (retcode != RIG_OK) { - fprintf(stderr, "rig_open: error = %s \n", rigerror(retcode)); + fprintf(stderr, "rig_open: error = %s %s %s \n", rigerror(retcode), rig_file, strerror(errno)); if (!ignore_rig_open_error) { exit(2); } } diff --git a/tests/rigctld.c b/tests/rigctld.c index 105185217..b497a77e9 100644 --- a/tests/rigctld.c +++ b/tests/rigctld.c @@ -666,7 +666,7 @@ int main(int argc, char *argv[]) if (retcode != RIG_OK) { - fprintf(stderr, "rig_open: error = %s \n", rigerror(retcode)); + fprintf(stderr, "rig_open: error = %s %s %s \n", rigerror(retcode), rig_file, strerror(errno)); exit(2); }