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
This commit is contained in:
arehbein 2023-03-25 00:05:36 +01:00 committed by laforge
parent ad253850d8
commit 097925b626
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}