summaryrefslogtreecommitdiff
path: root/src/FtpNegotiationCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-28 16:52:02 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-28 16:52:02 +0900
commit947967fc631f885dae3726a80de3a85084fbca81 (patch)
treed2cab447a42fe1728b470a664bf652ab4e9a54a3 /src/FtpNegotiationCommand.cc
parent13e3cf2573a6d3053674563c26cbbeac8ae42f36 (diff)
Renamed DownloadErrorCode.h as error_code.h. Renamed
downloaderrorcode::Value as error_code::Value.
Diffstat (limited to 'src/FtpNegotiationCommand.cc')
-rw-r--r--src/FtpNegotiationCommand.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FtpNegotiationCommand.cc b/src/FtpNegotiationCommand.cc
index 58b8b06e..04e90088 100644
--- a/src/FtpNegotiationCommand.cc
+++ b/src/FtpNegotiationCommand.cc
@@ -293,7 +293,7 @@ bool FtpNegotiationCommand::recvCwd()
getRequestGroup()->increaseAndValidateFileNotFoundCount();
if (status == 550)
throw DL_ABORT_EX2(MSG_RESOURCE_NOT_FOUND,
- downloadresultcode::RESOURCE_NOT_FOUND);
+ error_code::RESOURCE_NOT_FOUND);
else
throw DL_ABORT_EX(fmt(EX_BAD_STATUS, status));
}
@@ -771,7 +771,7 @@ bool FtpNegotiationCommand::recvRest(const SharedHandle<Segment>& segment) {
if(status != 350) {
if(segment && segment->getPositionToWrite() != 0) {
throw DL_ABORT_EX2("FTP server doesn't support resuming.",
- downloadresultcode::CANNOT_RESUME);
+ error_code::CANNOT_RESUME);
}
}
sequence_ = SEQ_SEND_RETR;
@@ -797,7 +797,7 @@ bool FtpNegotiationCommand::recvRetr() {
getRequestGroup()->increaseAndValidateFileNotFoundCount();
if (status == 550)
throw DL_ABORT_EX2(MSG_RESOURCE_NOT_FOUND,
- downloadresultcode::RESOURCE_NOT_FOUND);
+ error_code::RESOURCE_NOT_FOUND);
else
throw DL_ABORT_EX(fmt(EX_BAD_STATUS, status));
}