mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-28 15:20:29 +01:00
device: cope with devices' failure to provide reason for incompatibility
Pretty sure we get this right now, but if we don't let's fail more sensibly.
This commit is contained in:
parent
587de11903
commit
304e211640
1 changed files with 1 additions and 0 deletions
|
|
@ -13432,6 +13432,7 @@ _nm_device_check_connection_available (NMDevice *self,
|
|||
if (!nm_device_check_connection_compatible (self, connection,
|
||||
error ? &local : NULL)) {
|
||||
if (error) {
|
||||
g_return_val_if_fail (local, FALSE);
|
||||
nm_utils_error_set (error,
|
||||
local->domain == NM_UTILS_ERROR
|
||||
? local->code
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue