Revert "ifcfg-rh: avoid passing NULL error to connection_from_file_full()"

This reverts commit 35988ec633.

Since commit ffe0fde235,
wireless_connection_from_ifcfg() accepts a missing @error argument.
Revert this commit because the caller then can control whether to
log the error by providing @error.
This commit is contained in:
Thomas Haller 2015-01-06 15:50:35 +01:00
parent 4c629b0310
commit e4f32abfec

View file

@ -4827,18 +4827,13 @@ connection_from_file (const char *filename,
{
gboolean ignore_error = FALSE;
NMConnection *conn;
GError *local = NULL;
conn = connection_from_file_full (filename, NULL, NULL,
out_unhandled,
&local,
error,
&ignore_error);
if (local) {
if (!ignore_error)
PARSE_WARNING ("%s", local->message);
g_propagate_error (error, local);
}
if (error && *error && !ignore_error)
PARSE_WARNING ("%s", (*error)->message);
return conn;
}