diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-29 01:37:32 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-29 01:37:32 +0900 |
| commit | a0139e3e0821943adbfe52ad618598d96a9465e0 (patch) | |
| tree | eae64aa2a309a6a84cbb80bf7b64263123379237 /src/PeerInteractionCommand.cc | |
| parent | d5b6ec8621a5eceada56b58837527622672c8b36 (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.cc | 3 |
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); } |
