summaryrefslogtreecommitdiff
path: root/binaryurp
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-04-14 18:07:42 +0200
committerMichael Stahl <mstahl@redhat.com>2012-04-14 21:07:14 +0200
commit40aaefeb25190b2c63212f1b5cc353abfc7b0def (patch)
tree636e96140215de282466170eeefa23c7a0911ecd /binaryurp
parent0ff30829a607eb84669988f424b22df88db7c2de (diff)
put the missing type into the exception message
Diffstat (limited to 'binaryurp')
-rw-r--r--binaryurp/source/unmarshal.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/binaryurp/source/unmarshal.cxx b/binaryurp/source/unmarshal.cxx
index a2ac6c309cfd..f203b2169dbe 100644
--- a/binaryurp/source/unmarshal.cxx
+++ b/binaryurp/source/unmarshal.cxx
@@ -182,15 +182,17 @@ css::uno::TypeDescription Unmarshal::readType() {
}
return state_.typeCache[idx];
} else {
- css::uno::TypeDescription t(readString());
+ rtl::OUString const str(readString());
+ css::uno::TypeDescription t(str);
if (!t.is() ||
t.get()->eTypeClass != static_cast< typelib_TypeClass >(tc))
{
+
throw css::io::IOException(
rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM(
"binaryurp::Unmarshal: type with unknown"
- " name")),
+ " name: ")) + str,
css::uno::Reference< css::uno::XInterface >());
}
for (css::uno::TypeDescription t2(t);