summaryrefslogtreecommitdiff
path: root/lib/server
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-03-02 08:59:03 +0000
committerChris Wilson <chris+github@qwirx.com>2014-03-02 08:59:03 +0000
commit19a144f9f4be209b1e6d7480480b81c6e4a1dccc (patch)
tree331c6a00e29c6ff4a623d01587b2619dfbb072c5 /lib/server
parent1fa34cd0b80e90e9cfb493fd2f085310279ad4f9 (diff)
Add convenience macro for testing commands that return errors.
Diffstat (limited to 'lib/server')
-rwxr-xr-xlib/server/makeprotocol.pl.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/server/makeprotocol.pl.in b/lib/server/makeprotocol.pl.in
index f90b5474..e02ac74c 100755
--- a/lib/server/makeprotocol.pl.in
+++ b/lib/server/makeprotocol.pl.in
@@ -532,6 +532,7 @@ public:
virtual ~$client_server_base_class();
virtual std::auto_ptr<IOStream> ReceiveStream() = 0;
bool GetLastError(int &rTypeOut, int &rSubTypeOut);
+ int GetLastErrorType() { return mLastErrorSubType; }
protected:
void SetLastError(int Type, int SubType)