Skip to content

Commit

Permalink
remove double display of exception in report
Browse files Browse the repository at this point in the history
  • Loading branch information
lenaRB committed Feb 6, 2024
1 parent 535a195 commit dad8749
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/main/java/crml/compiler/crmlVisitorImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ else if (ctx.uninstantiated_def()!=null)

// keep a list of operator signatures for typing calls
Signature sig = new Signature();
System.out.println("RETURN:::: " + bType + "\n");
sig.return_type = ctx.type().getText();
sig.return_name = "out";
sig.function_name = modelName.toString();
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/ctests/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static String runTest( final String fileName,
true, false, true);

} catch (Exception e) {
fail("Unable to translate " + fileName + "to Modelica :\n" + e.getMessage());
fail("Unable to translate " + fileName + " to Modelica\n", e);
}

//if (stage == CompileStage.TRANSLATE)
Expand All @@ -44,8 +44,8 @@ static String runTest( final String fileName,
OMCmsg ret = OMCUtil.compile(stripped_file_name, out_dir, cs);

if(ret.msg.contains("false"))
fail("Unable to run Modelica script " + Utilities.getAbsolutePath(stripped_file_name) + ".mos" +
"\n omc fails with the following message: \n" + ret.msg);
fail("Unable to run Modelica script " + Utilities.getAbsolutePath(stripped_file_name) + ".mos",
new Throwable( "\n omc fails with the following message: \n" + ret.msg));

return ret.files;

Expand Down

0 comments on commit dad8749

Please sign in to comment.