From 7aaa3109edfc2e1fadc533d4d276ee7c14b80dea Mon Sep 17 00:00:00 2001 From: Burak Bala Date: Tue, 28 Jan 2020 20:00:52 +0300 Subject: tdf#42982 Make UNO error reporting more descriptive Change-Id: Iea5527ec88778f573b2e03ccd069142b7493c63c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87650 Tested-by: Jenkins Reviewed-by: Michael Stahl --- vbahelper/source/msforms/vbanewfont.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vbahelper') diff --git a/vbahelper/source/msforms/vbanewfont.cxx b/vbahelper/source/msforms/vbanewfont.cxx index 2e7e1efbfb2f..b966d8454a81 100644 --- a/vbahelper/source/msforms/vbanewfont.cxx +++ b/vbahelper/source/msforms/vbanewfont.cxx @@ -71,7 +71,7 @@ void SAL_CALL VbaNewFont::setCharset( sal_Int16 nCharset ) if( (0 <= nCharset) && (nCharset <= SAL_MAX_UINT8) ) eFontEnc = rtl_getTextEncodingFromWindowsCharset( static_cast< sal_uInt8 >( nCharset ) ); if( eFontEnc == RTL_TEXTENCODING_DONTKNOW ) - throw uno::RuntimeException(); + throw uno::RuntimeException("an unknown or missing encoding"); mxProps->setPropertyValue( "FontCharset" , uno::Any( static_cast< sal_Int16 >( eFontEnc ) ) ); } -- cgit