summaryrefslogtreecommitdiff
path: root/qpid/cpp/lib/common/framing
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-01-16 12:00:22 +0000
committerGordon Sim <gsim@apache.org>2007-01-16 12:00:22 +0000
commit84644f36a168cd4558725c4977b39b9966b1289b (patch)
tree56bbe1f255b5efd39dacdbff1b3eca83804a7fda /qpid/cpp/lib/common/framing
parentf5032290250d66a61925de1aebd29eac051f364e (diff)
downloadqpid-python-84644f36a168cd4558725c4977b39b9966b1289b.tar.gz
Some basic additional error logging of framing errors.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@496665 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/lib/common/framing')
-rw-r--r--qpid/cpp/lib/common/framing/Value.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/cpp/lib/common/framing/Value.cpp b/qpid/cpp/lib/common/framing/Value.cpp
index fc087043e5..d193286636 100644
--- a/qpid/cpp/lib/common/framing/Value.cpp
+++ b/qpid/cpp/lib/common/framing/Value.cpp
@@ -22,6 +22,7 @@
#include <Buffer.h>
#include <FieldTable.h>
#include <QpidError.h>
+#include <sstream>
namespace qpid {
namespace framing {
@@ -85,7 +86,9 @@ std::auto_ptr<Value> 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;