From 08b9411e15dff13299de1dc4fab42ae8dba76cf6 Mon Sep 17 00:00:00 2001 From: Syres916 <46537884+Syres916@users.noreply.github.com> Date: Thu, 4 Jul 2024 12:57:15 +0100 Subject: [PATCH] [Sketcher] Assist user in finding the sketch with the error --- src/Mod/Sketcher/App/SketchObject.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index 2518eb21f0..0eaf99b327 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -10071,8 +10071,9 @@ void SketchObject::onChanged(const App::Property* prop) } else { Base::Console().Error( - "SketchObject::onChanged(): Unmanaged change of Geometry Property " - "results in invalid constraint indices\n"); + this->getFullLabel() + " SketchObject::onChanged ", + QT_TRANSLATE_NOOP("Notifications", "Unmanaged change of Geometry Property " + "results in invalid constraint indices") "\n"); } Base::StateLocker lock(internaltransaction, true); setUpSketch(); @@ -10101,8 +10102,9 @@ void SketchObject::onChanged(const App::Property* prop) } else { Base::Console().Error( - "SketchObject::onChanged(): Unmanaged change of Constraint " - "Property results in invalid constraint indices\n"); + this->getFullLabel() + " SketchObject::onChanged ", + QT_TRANSLATE_NOOP("Notifications", "Unmanaged change of Constraint " + "Property results in invalid constraint indices") "\n"); } Base::StateLocker lock(internaltransaction, true); setUpSketch();