Skip to content

Commit

Permalink
abort with a hard error if unknown parameter to be set in constraint
Browse files Browse the repository at this point in the history
This avoids overlooking of errors in the FS model file.
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Jan 17, 2017
1 parent c902728 commit 43bb03a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meta/Constraint.m
Expand Up @@ -41,7 +41,9 @@
Parameters`IsPhase[parameter],
Parameters`SetPhase[parameter, value, modelName],
True,
Print["Error: ", parameter, " is neither a model nor an input parameter!"];
Print["Error: ", parameter, " cannot be set in the constraint,",
" because it is neither a model nor an input parameter!"];
Quit[1];
""
];

Expand Down

0 comments on commit 43bb03a

Please sign in to comment.