Skip to content

Commit

Permalink
Fixed printing of #|Execution failed, which is needed for rtest
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1596 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
levsa committed Mar 21, 2005
1 parent 513888f commit a907482
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modeq/main.rml
Expand Up @@ -510,13 +510,15 @@ relation translate_file : string list => () =
----------------------------
translate_file [] => fail

(*
rule Print.print_error_buf "# An error occured. Perhaps this is not a Modelica file or does not end with .mo?\n" &
Print.get_error_string () => str
& print str
& Print.get_string => printstr
& print printstr
----------------------------
translate_file _ => fail
*)

end

Expand Down Expand Up @@ -733,7 +735,8 @@ relation main : string list => () =
--------------------
main args

rule print "\n\n----\n\nMain failed. Error buffer:\n\n"
rule print "#|Execution failed!"
& print "\n\n----\n\nError buffer:\n\n"
& Print.get_error_string () => errstr
& print errstr
--------------
Expand Down

0 comments on commit a907482

Please sign in to comment.