Skip to content

Commit

Permalink
Add solver name to error message in _validate_sbml_features()
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcooper10 committed Jan 28, 2022
1 parent eae9251 commit f4410a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gillespy2/solvers/cpp/c_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,9 @@ def _validate_sbml_features(self, unsupported_features: "dict[str, str]"):
detected.append(feature_name)

if len(detected):
raise gillespyError.ModelError(f"Could not run Model. SBML Feature: {detected} not supported by SSACSolver.")
raise gillespyError.ModelError(f"Could not run Model, "
f"SBML Features not supported by {self.name}: "
+ ", ".join(detected))

def _validate_seed(self, seed: int):
if seed is None:
Expand Down

0 comments on commit f4410a7

Please sign in to comment.