mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 17:10:21 +01:00
Revert "ifcfg-rh: avoid passing NULL error to connection_from_file_full()"
This reverts commit35988ec633. Since commitffe0fde235, 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:
parent
4c629b0310
commit
e4f32abfec
1 changed files with 3 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue