vbahelper/source/msforms/vbanewfont.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 7aaa3109edfc2e1fadc533d4d276ee7c14b80dea Author: Burak Bala <burak.bb...@gmail.com> AuthorDate: Tue Jan 28 20:00:52 2020 +0300 Commit: Michael Stahl <michael.st...@cib.de> CommitDate: Thu Feb 20 10:42:28 2020 +0100 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.st...@cib.de> 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 ) ) ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits