comphelper/source/misc/storagehelper.cxx |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

New commits:
commit feec8bd9e87159f4c6f7c24f6317b197bd680ecb
Author:     Mike Kaganski <[email protected]>
AuthorDate: Mon Nov 10 09:28:41 2025 +0100
Commit:     Mike Kaganski <[email protected]>
CommitDate: Mon Nov 10 12:47:59 2025 +0100

    Simplify exception message
    
    No need to mention function name and line. In debug builds,
    exceptions get this information automatically.
    
    Change-Id: Ia09d72ff892c98cff9b33131dd44d1b821b54ff3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193719
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/comphelper/source/misc/storagehelper.cxx 
b/comphelper/source/misc/storagehelper.cxx
index b0b55e9a45f7..f19d699893a5 100644
--- a/comphelper/source/misc/storagehelper.cxx
+++ b/comphelper/source/misc/storagehelper.cxx
@@ -285,13 +285,7 @@ sal_Int32 OStorageHelper::GetXStorageFormat(
     else
     {
         // the mediatype is not known
-        OUString aMsg = __func__
-                      + OUString::Concat(u":")
-                      + OUString::number(__LINE__)
-                      + ": unknown media type '"
-                      + aMediaType
-                      + "'";
-        throw beans::IllegalTypeException(aMsg);
+        throw beans::IllegalTypeException("unknown media type '" + aMediaType 
+ "'");
     }
 
     return nResult;

Reply via email to