Improve transformation coordinate expression checks
[alexxy/gromacs.git] / src / gromacs / pulling / transformationcoordinate.cpp
index 5271e397d08074b0a6f14f9bf2b292da9eee140a..e3c1cea9e140d1413c38c0e50a2188efea08bedd 100644 (file)
@@ -65,7 +65,7 @@ double getTransformationPullCoordinateValue(pull_coord_work_t* coord)
 #if HAVE_MUPARSER
     catch (mu::Parser::exception_type& e)
     {
-        GMX_THROW(InternalError(
+        GMX_THROW(InconsistentInputError(
                 formatString("failed to evaluate expression for transformation pull-coord%d: %s\n",
                              transformationPullCoordinateIndex + 1,
                              e.GetMsg().c_str())));
@@ -73,7 +73,7 @@ double getTransformationPullCoordinateValue(pull_coord_work_t* coord)
 #endif
     catch (std::exception& e)
     {
-        GMX_THROW(InternalError(
+        GMX_THROW(InconsistentInputError(
                 formatString("failed to evaluate expression for transformation pull-coord%d.\n"
                              "Last variable pull-coord-index: %d.\n"
                              "Message:  %s\n",