FEM: print exception if loading a result in fem fails

Fixes #15827
This commit is contained in:
lorenz
2024-08-08 19:08:02 +02:00
committed by Chris Hennes
parent 7c584433e7
commit 1a5ab14ca9

View File

@@ -285,8 +285,9 @@ class _TaskPanel:
QApplication.setOverrideCursor(Qt.WaitCursor)
try:
self.fea.load_results()
except Exception:
except Exception as e:
FreeCAD.Console.PrintError("loading results failed\n")
FreeCAD.Console.PrintError(e)
QApplication.restoreOverrideCursor()
self.form.l_time.setText(f"Time: {time.time() - self.Start:4.1f}: ")