Skip to content

Commit

Permalink
Merge pull request #128 from LEMS/experimental
Browse files Browse the repository at this point in the history
Just print warning message if error on derived variable check - might …
  • Loading branch information
pgleeson authored Aug 19, 2024
2 parents 722616f + aeef6e8 commit 069a8d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,8 @@ public void checkEquations(HashMap<String, Dimensional> cdimHM) throws ContentEr
try {
dimHM.put(dv.getName(), dv.getDimensionality(dimHM));
} catch (ContentError ce) {
String errmsg = ("Checking " + dv + " in " + r_type + " " + ce.getMessage());
throw new ContentError(errmsg);
String errmsg = ("Checking derived variable: " + dv + " in " + r_type + "\nError here: " + ce.getMessage());
E.error(errmsg+"\n**************\n* Note: this may not be a serious error, in the case that the derived variables are all present, just have been specified out of order, e.g. b = f(a) is defined in the xML file before a is defined. ");

}
}
Expand Down

0 comments on commit 069a8d1

Please sign in to comment.