vcl/source/app/scheduler.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 48707e41768e3742f922587f2324bff581bf405c Author: Miklos Vajna <[email protected]> AuthorDate: Wed Feb 4 08:53:01 2026 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Wed Feb 4 10:19:17 2026 +0100 vcl: log more info about a task that throws an exception vcl's scheduler assumes that tasks don't throw exceptions. Currently we log something like: > warn:vcl.schedule:3886322:2983641:vcl/source/app/scheduler.cxx:590: Uncaught com.sun.star.container.NoSuchElementException message: "Default Page Style" Which would be more usable if we know either the source location of that throw and the backtrace or at least the task name. The later seems to be available, so log it; hopefully next time this happens we'll know how to fix the actual problem. Change-Id: I56515c482a63916e69cddc8c0ae116298158f649 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198642 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> diff --git a/vcl/source/app/scheduler.cxx b/vcl/source/app/scheduler.cxx index 9b5deaba0cd9..449a1235cf26 100644 --- a/vcl/source/app/scheduler.cxx +++ b/vcl/source/app/scheduler.cxx @@ -587,7 +587,8 @@ void Scheduler::CallbackTaskScheduling() } catch (css::uno::Exception&) { - TOOLS_WARN_EXCEPTION("vcl.schedule", "Uncaught"); + TOOLS_WARN_EXCEPTION("vcl.schedule", + "Uncaught exception for task '" << pTask->GetDebugName() << "'"); std::abort(); } catch (std::exception& e)
