summaryrefslogtreecommitdiff
path: root/lib/server/Message.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-03-02 08:58:41 +0000
committerChris Wilson <chris+github@qwirx.com>2014-03-02 08:58:41 +0000
commit772ecab2a053fefbf7b65e66e05babfb21920aea (patch)
tree25e538a40637b2bc9ae2eb0b48be2cef6388272e /lib/server/Message.h
parent7f8353d71c272415d09531c46888560b7ea7de8f (diff)
Add information about last exchange when wrong type of object received.
Helps with debugging ConnectionException::Protocol_StreamWhenObjExpected and ConnectionException::Protocol_ObjWhenStreamExpected errors, which may be caused by a command returning an error message and failing to consume any uploaded streams first. Add extra debugging in ProtocolLocal objects to detect when this happens during the command itself, which helps with debugging.
Diffstat (limited to 'lib/server/Message.h')
-rw-r--r--lib/server/Message.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/server/Message.h b/lib/server/Message.h
index 0d073d49..c6fa3cc1 100644
--- a/lib/server/Message.h
+++ b/lib/server/Message.h
@@ -41,6 +41,7 @@ public:
virtual void LogSysLog(const char *Action) const { }
virtual void LogFile(const char *Action, FILE *file) const { }
+ virtual std::string ToString() const = 0;
};
/*