tdf#42982 RuntimeException msg for SwXFrame::setName()

Change-Id: I1d92730d93e71403b6d0ad97eedef4e6ba00a642
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121394
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx
index 8b925067..72d307d 100644
--- a/sw/source/core/unocore/unoframe.cxx
+++ b/sw/source/core/unocore/unoframe.cxx
@@ -1313,7 +1313,7 @@
        pFormat->GetDoc()->SetFlyName(static_cast<SwFlyFrameFormat&>(*pFormat), rName);
        if(pFormat->GetName() != rName)
        {
            throw uno::RuntimeException();
            throw uno::RuntimeException("SwXFrame::setName(): Illegal object name. Duplicate name?");
        }
    }
    else if(m_bIsDescriptor)