diff options
author | arehbein <arehbein@sysmocom.de> | 2023-03-25 00:05:36 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2023-03-25 08:04:25 +0000 |
commit | 097925b6267fc056b2f4a302b9f6ec1acaf596ae (patch) | |
tree | 242a29aeccfda148c041cada348e1274c9a3b9c5 | |
parent | ad253850d8435f3c7e25697fde316a7affb99f3b (diff) |
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
-rw-r--r-- | src/osmo-bsc/osmo_bsc_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c index 69f272135..5866ec1d0 100644 --- a/src/osmo-bsc/osmo_bsc_main.c +++ b/src/osmo-bsc/osmo_bsc_main.c @@ -483,7 +483,7 @@ static int bsc_network_configure(const char *config_file) 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; } |