This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1-recorder/+/16465 ) Change subject: print error message when config file cannot be opened ...................................................................... print error message when config file cannot be opened Change-Id: I52514adf853c0d2dc5114864f0713e549733786d --- M src/e1_recorder.c 1 file changed, 5 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-e1-recorder refs/changes/65/16465/1 diff --git a/src/e1_recorder.c b/src/e1_recorder.c index d085ca5..07fd4a6 100644 --- a/src/e1_recorder.c +++ b/src/e1_recorder.c @@ -1,5 +1,6 @@ #include <signal.h> #include <getopt.h> +#include <errno.h> #include <osmocom/core/signal.h> #include <osmocom/core/logging.h> @@ -150,8 +151,11 @@ handle_options(argc, argv); rc = vty_read_config_file(g_config_file, NULL); - if (rc < 0) + if (rc < 0) { + fprintf(stderr, "Cannot parse configuration file '%s': %s\n", g_config_file, + strerror(errno)); exit(1); + } /* start telne tafte reading config for vty_get_bind_adr() */ telnet_init_dynif(rec_tall_ctx, NULL, vty_get_bind_addr(), 4444); -- To view, visit https://gerrit.osmocom.org/c/osmo-e1-recorder/+/16465 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-e1-recorder Gerrit-Branch: master Gerrit-Change-Id: I52514adf853c0d2dc5114864f0713e549733786d Gerrit-Change-Number: 16465 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge at osmocom.org> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191204/b69651fa/attachment.htm>