mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 10:52:36 +00:00
Do not spew a critial warning when parsing an invalid URI
This commit is contained in:
parent
0293f720bc
commit
b0fce88754
@ -607,6 +607,13 @@ fu_util_download_file (FuUtilPrivate *priv,
|
|||||||
/* download data */
|
/* download data */
|
||||||
g_debug ("downloading %s to %s:", uri, fn);
|
g_debug ("downloading %s to %s:", uri, fn);
|
||||||
msg = soup_message_new (SOUP_METHOD_GET, uri);
|
msg = soup_message_new (SOUP_METHOD_GET, uri);
|
||||||
|
if (msg == NULL) {
|
||||||
|
g_set_error (error,
|
||||||
|
FWUPD_ERROR,
|
||||||
|
FWUPD_ERROR_INVALID_FILE,
|
||||||
|
"Failed to parse URI %s", uri);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
status_code = soup_session_send_message (session, msg);
|
status_code = soup_session_send_message (session, msg);
|
||||||
if (status_code != SOUP_STATUS_OK) {
|
if (status_code != SOUP_STATUS_OK) {
|
||||||
g_set_error (error,
|
g_set_error (error,
|
||||||
|
Loading…
Reference in New Issue
Block a user