summaryrefslogtreecommitdiffstats
path: root/comphelper/source
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source')
-rw-r--r--comphelper/source/misc/storagehelper.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx
index 0c60a7c54bd1..51ee8c51762b 100644
--- a/comphelper/source/misc/storagehelper.cxx
+++ b/comphelper/source/misc/storagehelper.cxx
@@ -45,6 +45,7 @@
#include <comphelper/storagehelper.hxx>
+#include <boost/current_function.hpp>
using namespace ::com::sun::star;
@@ -274,7 +275,13 @@ sal_Int32 OStorageHelper::GetXStorageFormat(
else
{
// the mediatype is not known
- throw beans::IllegalTypeException();
+ OUString aMsg(BOOST_CURRENT_FUNCTION);
+ aMsg += ":";
+ aMsg += OUString::number(__LINE__);
+ aMsg += ": unknown media type '";
+ aMsg += aMediaType;
+ aMsg += "'";
+ throw beans::IllegalTypeException(aMsg);
}
return nResult;