Skip to content

Commit

Permalink
Fixed so that modeq returns status code != 0 when execution failes
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1618 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Håkan Lundvall committed Mar 24, 2005
1 parent 4228a71 commit 76edad7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modeq/main.rml
Expand Up @@ -729,16 +729,13 @@ relation main : string list => () =
Debug.bcall (ismode, interactivemode, args' ) &
Debug.bcall (icmode, interactivemode_corba, args') &
Debug.bcall (imode', translate_file, args')
& print "\n\n----\n\nMain succeeded. Error buffer:\n\n"
& Print.get_error_string () => errstr
& print errstr
--------------------
main args
main args

rule print "#|Execution failed!"
& print "\n\n----\n\nError buffer:\n\n"
& Print.get_error_string () => errstr
& print errstr
--------------
main _
main _ => fail
end

0 comments on commit 76edad7

Please sign in to comment.