Skip to content

Commit

Permalink
Merge pull request #699 from StochSS/fix/cpp-solver-incorrect-error-t…
Browse files Browse the repository at this point in the history
…argets

Add correct C++ solver names for validation errors
  • Loading branch information
briandrawert authored Feb 10, 2022
2 parents eae9251 + f4410a7 commit 3db5fe0
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 3db5fe0

Please sign in to comment.