summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Cardace <acardace@redhat.com>2020-06-18 18:15:58 +0200
committerAntonio Cardace <acardace@redhat.com>2020-06-26 16:47:55 +0200
commit3bd30f6064c3e879427bc47e0c258c7797cd3fe6 (patch)
tree57f54b37f3d7d5fb0910c2cda9a4a30b4652cb58
parente09bd2339a224a13067b0adcf9cb84a4f13ef003 (diff)
downloadNetworkManager-3bd30f6064c3e879427bc47e0c258c7797cd3fe6.tar.gz
nmcs: add error message when a HTTP request times out
https://bugzilla.redhat.com/show_bug.cgi?id=1821787
-rw-r--r--clients/cloud-setup/nm-cloud-setup-utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clients/cloud-setup/nm-cloud-setup-utils.c b/clients/cloud-setup/nm-cloud-setup-utils.c
index 13c9566a8b..a32003cb35 100644
--- a/clients/cloud-setup/nm-cloud-setup-utils.c
+++ b/clients/cloud-setup/nm-cloud-setup-utils.c
@@ -345,7 +345,8 @@ _poll_timeout_cb (gpointer user_data)
{
PollTaskData *poll_task_data = user_data;
- _poll_return (poll_task_data, FALSE, NULL);
+ _poll_return (poll_task_data, FALSE, nm_utils_error_new (NM_UTILS_ERROR_UNKNOWN,
+ "timeout expired"));
return G_SOURCE_CONTINUE;
}