summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/server/makeprotocol.pl.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/server/makeprotocol.pl.in b/lib/server/makeprotocol.pl.in
index db33bd29..95dd84fd 100755
--- a/lib/server/makeprotocol.pl.in
+++ b/lib/server/makeprotocol.pl.in
@@ -583,20 +583,21 @@ void $protocol_base_class\::CheckReply(const std::string& requestCommand,
if(rReply.IsError(type, subType))
{
SetLastError(type, subType);
- BOX_WARNING(requestCommand << " command failed: "
+ THROW_EXCEPTION_MESSAGE(ConnectionException,
+ Conn_Protocol_UnexpectedReply,
+ requestCommand << " command failed: "
"received error " <<
(($error_class&)rReply).GetMessage());
}
else
{
SetLastError(Protocol::UnknownError, Protocol::UnknownError);
- BOX_WARNING(requestCommand << " command failed: "
+ THROW_EXCEPTION_MESSAGE(ConnectionException,
+ Conn_Protocol_UnexpectedReply,
+ requestCommand << " command failed: "
"received unexpected response type " <<
rReply.GetType());
}
-
- // Throw an exception
- THROW_EXCEPTION(ConnectionException, Conn_Protocol_UnexpectedReply)
}
}