FEM: ccx binary, better error message if ccx binary exists but has problems to run, seen a lot on osx

This commit is contained in:
Bernd Hahnebach
2018-06-05 07:30:55 +02:00
committed by Yorik van Havre
parent ef2c7ad31e
commit 7488573b66

View File

@@ -619,7 +619,7 @@ class FemToolsCcx(QtCore.QRunnable, QtCore.QObject):
raise Exception(error_message)
except Exception as e:
FreeCAD.Console.PrintError(str(e))
error_message = "FEM: CalculiX ccx \'{}\' output \'{}\' doesn't contain expected phrase \'{}\'. Please use ccx 2.6 or newer\n".format(ccx_binary, ccx_stdout, ccx_binary_sig)
error_message = "FEM: CalculiX ccx \'{}\' output \'{}\' doesn't contain expected phrase \'{}\'. There are some problems in runing the binary of ccx. Check if ccx runs standalone without FreeCAD.\n".format(ccx_binary, ccx_stdout, ccx_binary_sig)
if FreeCAD.GuiUp:
QtGui.QMessageBox.critical(None, error_title, error_message)
raise Exception(error_message)