device: change error code for Reapply() rejecting unsupported flags argument

Changing an error code is an API change. But, so far no flags existed,
so it's unlikely that somebody would send invalid flags or care about
the return code.
This commit is contained in:
Thomas Haller 2022-12-13 15:58:38 +01:00
parent 8bed2c9edc
commit b88cdf2a6b
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -13202,7 +13202,7 @@ impl_device_get_applied_connection(NMDBusObject *obj,
if (flags != 0) {
g_dbus_method_invocation_return_error_literal(invocation,
NM_DEVICE_ERROR,
NM_DEVICE_ERROR_FAILED,
NM_DEVICE_ERROR_INVALID_ARGUMENT,
"Invalid flags specified");
return;
}