sw/source/core/undo/docundo.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 2e58ffc19860393c162cab277dc032fe9bfad08a Author: praweshm <[email protected]> AuthorDate: Thu Dec 11 21:11:52 2025 +0530 Commit: Mike Kaganski <[email protected]> CommitDate: Sat Dec 20 09:06:08 2025 +0100 tdf#42982 Improve UNO API error reporting Change-Id: I7a783dea3920f3c5c5c52ab754f527421cb0b6d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195476 Reviewed-by: Mike Kaganski <[email protected]> Tested-by: Jenkins diff --git a/sw/source/core/undo/docundo.cxx b/sw/source/core/undo/docundo.cxx index 8f9fc0e4e464..2c5ccfdcb606 100644 --- a/sw/source/core/undo/docundo.cxx +++ b/sw/source/core/undo/docundo.cxx @@ -679,7 +679,8 @@ bool UndoManager::impl_DoUndoRedo(UndoOrRedoType undoOrRedo, size_t nUndoOffset) OSL_ENSURE(pEditShell, "sw::UndoManager needs a SwEditShell!"); if (!pEditShell) { - throw uno::RuntimeException(); + OUString op = (UndoOrRedoType::Undo == undoOrRedo) ? u"Undo"_ustr : u"Redo"_ustr; + throw uno::RuntimeException(op + " operation failed: no active SwEditShell."); } // in case the model has controllers locked, the Undo should not
