core: log the error when nm_settings_new() fails
This commit is contained in:
@@ -691,7 +691,8 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
settings = nm_settings_new (config, plugins, &error);
|
settings = nm_settings_new (config, plugins, &error);
|
||||||
if (!settings) {
|
if (!settings) {
|
||||||
nm_log_err (LOGD_CORE, "failed to initialize settings storage.");
|
nm_log_err (LOGD_CORE, "failed to initialize settings storage: %s",
|
||||||
|
error && error->message ? error->message : "(unknown)");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user