From 8481cf3fd85c90e0bd465480b27509c273dee056 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 16 Jan 2007 12:00:22 +0000 Subject: Some basic additional error logging of framing errors. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@496665 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/lib/common/framing/Value.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpp/lib/common/framing/Value.cpp') diff --git a/cpp/lib/common/framing/Value.cpp b/cpp/lib/common/framing/Value.cpp index fc087043e5..d193286636 100644 --- a/cpp/lib/common/framing/Value.cpp +++ b/cpp/lib/common/framing/Value.cpp @@ -22,6 +22,7 @@ #include #include #include +#include namespace qpid { namespace framing { @@ -85,7 +86,9 @@ std::auto_ptr Value::decode_value(Buffer& buffer) value.reset(new FieldTableValue()); break; default: - THROW_QPID_ERROR(FRAMING_ERROR, "Unknown field table value type"); + std::stringstream out; + out << "Unknown field table value type: " << type; + THROW_QPID_ERROR(FRAMING_ERROR, out.str()); } value->decode(buffer); return value; -- cgit v1.2.1