diff options
author | Tor Lillqvist <tml@collabora.com> | 2022-10-31 12:53:48 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2022-11-01 12:55:26 +0100 |
commit | e99a09f857b1aa4a98052dc9dd79eba70186bcff (patch) | |
tree | 9468594ddc3aac1a965e698b8135a6a406460ce3 /stoc | |
parent | a73f3b2df5ccb307609cf15db58251a859495f6e (diff) |
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 <tml@collabora.com>
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/typeconv/convert.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 ); } |