Skip to content
Snippets Groups Projects
Commit 1b8ac7c6 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

provide an error string when resuming fails - and use the proper error code,

not the former one
parent bd2db872
No related branches found
No related tags found
No related merge requests found
......@@ -340,12 +340,12 @@ CURLcode Curl_file(struct connectdata *conn)
return result;
}
/* Added by Dolbneff A.V & Spiridonoff A.V */
if (conn->resume_from <= expected_size)
expected_size -= conn->resume_from;
else
/* Is this error code suitable in such situation? */
return CURLE_FTP_BAD_DOWNLOAD_RESUME;
else {
failf(data, "failed to resume file:// transfer");
return CURLE_BAD_DOWNLOAD_RESUME;
}
if (fstated && (expected_size == 0))
return CURLE_OK;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment