From 1b8ac7c6b5c95a74ea49b2aa6d4b4650c401e95e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 11 Dec 2004 18:55:51 +0000 Subject: provide an error string when resuming fails - and use the proper error code, not the former one --- lib/file.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/file.c b/lib/file.c index de1e89c59..0f448934b 100644 --- a/lib/file.c +++ b/lib/file.c @@ -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; -- cgit v1.2.3