diff options
author | Burak Bala <burak.bbala@gmail.com> | 2020-01-28 20:00:52 +0300 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-02-20 10:42:28 +0100 |
commit | 7aaa3109edfc2e1fadc533d4d276ee7c14b80dea (patch) | |
tree | fee9a3c4c53b2e714c00e822aaed8784061969fb | |
parent | 69e708868f6046cada955a16bca966370ce3218a (diff) |
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 <michael.stahl@cib.de>
-rw-r--r-- | vbahelper/source/msforms/vbanewfont.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) ) ); } |