stoc/source/typeconv/convert.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e99a09f857b1aa4a98052dc9dd79eba70186bcff
Author:     Tor Lillqvist <[email protected]>
AuthorDate: Mon Oct 31 12:53:48 2022 +0200
Commit:     Tor Lillqvist <[email protected]>
CommitDate: Tue Nov 1 12:55:26 2022 +0100

    Make exception message a bit more informative
    
    Change-Id: I61141eab37f07d012ff2c5033efdfa1e0126786f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142075
    Tested-by: Jenkins
    Reviewed-by: Tor Lillqvist <[email protected]>

diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx
index 29e8f344b4a7..445163f923f1 100644
--- a/stoc/source/typeconv/convert.cxx
+++ b/stoc/source/typeconv/convert.cxx
@@ -359,7 +359,7 @@ sal_Int64 TypeConverter_Impl::toHyper( const Any& rAny, 
sal_Int64 min, sal_uInt6
 
     default:
         throw CannotConvertException(
-            "TYPE is not supported!",
+            "Type " + OUString::number(static_cast<int>(aDestinationClass)) + 
" is not supported!",
             Reference<XInterface>(), aDestinationClass, 
FailReason::TYPE_NOT_SUPPORTED, 0 );
     }
 
@@ -439,7 +439,7 @@ double TypeConverter_Impl::toDouble( const Any& rAny, 
double min, double max )
 
     default:
         throw CannotConvertException(
-            "TYPE is not supported!",
+            "Type " + OUString::number(static_cast<int>(aDestinationClass)) + 
" is not supported!",
             Reference< XInterface >(), aDestinationClass, 
FailReason::TYPE_NOT_SUPPORTED, 0 );
     }
 

Reply via email to