laforge has submitted this change. (
https://gerrit.osmocom.org/c/osmo-bsc/+/32062 )
Change subject: main: Give specific error message
......................................................................
main: Give specific error message
vty_read_config() returns an errno number or zero; add the appropriate error string in
case of error
Change-Id: I0015824a29ebf8aaeaa996ab4d2cb2769ea48864
---
M src/osmo-bsc/osmo_bsc_main.c
1 file changed, 12 insertions(+), 1 deletion(-)
Approvals:
laforge: Looks good to me, approved
pespin: Looks good to me, but someone else must approve
Jenkins Builder: Verified
diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c
index 69f2721..5866ec1 100644
--- a/src/osmo-bsc/osmo_bsc_main.c
+++ b/src/osmo-bsc/osmo_bsc_main.c
@@ -483,7 +483,7 @@
rc = vty_read_config_file(config_file, NULL);
if (rc < 0) {
- LOGP(DNM, LOGL_FATAL, "Failed to parse the config file: '%s'\n",
config_file);
+ LOGP(DNM, LOGL_FATAL, "Failed to parse the config file: '%s' (%s)\n",
config_file, strerror(-rc));
return rc;
}
--
To view, visit
https://gerrit.osmocom.org/c/osmo-bsc/+/32062
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I0015824a29ebf8aaeaa996ab4d2cb2769ea48864
Gerrit-Change-Number: 32062
Gerrit-PatchSet: 2
Gerrit-Owner: arehbein <arehbein(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged