summaryrefslogtreecommitdiff
path: root/src/PeerInteractionCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-29 01:37:32 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-29 01:37:32 +0900
commita0139e3e0821943adbfe52ad618598d96a9465e0 (patch)
treeeae64aa2a309a6a84cbb80bf7b64263123379237 /src/PeerInteractionCommand.cc
parentd5b6ec8621a5eceada56b58837527622672c8b36 (diff)
Call RequestGroup::setLastError in
PeerInteractionCommand::onFailure(). Added const Exception& argument to virtual AbstractCommand::onFailure().
Diffstat (limited to 'src/PeerInteractionCommand.cc')
-rw-r--r--src/PeerInteractionCommand.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/PeerInteractionCommand.cc b/src/PeerInteractionCommand.cc
index def697ed..dece90a8 100644
--- a/src/PeerInteractionCommand.cc
+++ b/src/PeerInteractionCommand.cc
@@ -367,8 +367,9 @@ void PeerInteractionCommand::onAbort() {
peerStorage_->returnPeer(getPeer());
}
-void PeerInteractionCommand::onFailure()
+void PeerInteractionCommand::onFailure(const Exception& err)
{
+ requestGroup_->setLastErrorCode(err.getErrorCode());
requestGroup_->setHaltRequested(true);
}