Skip to content

Commit

Permalink
Add exit codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Maumagnaguagno committed Mar 29, 2024
1 parent 4ea5aab commit e43894f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Hype.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,6 @@ def compile(domain, problem, type = 'rb')
end
rescue
puts $!, $@
exit(2)
end
end
2 changes: 2 additions & 0 deletions Hypertension_U.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@ def problem(state, tasks, debug = false, max_plans = -1, min_prob = 0, ordered =
@plans
rescue Interrupt
puts 'Interrupted'
exit(130)
rescue
puts $!, $@
exit(2)
end

#-----------------------------------------------
Expand Down

0 comments on commit e43894f

Please sign in to comment.