mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-21 14:30:07 +01:00
tui: correctly return errors from NmtSecretAgent
This commit is contained in:
parent
4c0ac46a99
commit
c0663e42d0
1 changed files with 2 additions and 1 deletions
|
|
@ -447,7 +447,8 @@ nmt_secret_agent_get_secrets (NMSecretAgent *agent,
|
|||
error = g_error_new (NM_SECRET_AGENT_ERROR, NM_SECRET_AGENT_ERROR_INTERNAL_ERROR,
|
||||
"Request for %s secrets already pending", request_id);
|
||||
nope:
|
||||
callback (agent, connection, NULL, NULL, callback_data);
|
||||
callback (agent, connection, NULL, error, callback_data);
|
||||
g_error_free (error);
|
||||
g_free (request_id);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue