pull: Don't crash if the URL is not found
This commit is contained in:
parent
2d6374822b
commit
d744436a50
|
|
@ -378,7 +378,7 @@ fetch_uri_contents_membuf_sync (OtPullData *pull_data,
|
|||
run_mainloop_monitor_fetcher (pull_data);
|
||||
if (!fetch_data.result_stream)
|
||||
{
|
||||
if (g_error_matches (*error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
|
||||
if (allow_noent && g_error_matches (*error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
|
||||
{
|
||||
g_clear_error (error);
|
||||
ret = TRUE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue