Kaydet (Commit) 40aaefeb authored tarafından Michael Stahl's avatar Michael Stahl

put the missing type into the exception message

üst 0ff30829
...@@ -182,15 +182,17 @@ css::uno::TypeDescription Unmarshal::readType() { ...@@ -182,15 +182,17 @@ css::uno::TypeDescription Unmarshal::readType() {
} }
return state_.typeCache[idx]; return state_.typeCache[idx];
} else { } else {
css::uno::TypeDescription t(readString()); rtl::OUString const str(readString());
css::uno::TypeDescription t(str);
if (!t.is() || if (!t.is() ||
t.get()->eTypeClass != static_cast< typelib_TypeClass >(tc)) t.get()->eTypeClass != static_cast< typelib_TypeClass >(tc))
{ {
throw css::io::IOException( throw css::io::IOException(
rtl::OUString( rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM( RTL_CONSTASCII_USTRINGPARAM(
"binaryurp::Unmarshal: type with unknown" "binaryurp::Unmarshal: type with unknown"
" name")), " name: ")) + str,
css::uno::Reference< css::uno::XInterface >()); css::uno::Reference< css::uno::XInterface >());
} }
for (css::uno::TypeDescription t2(t); for (css::uno::TypeDescription t2(t);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment