Skip to content

Commit e43894f

Browse files
Add exit codes
1 parent 4ea5aab commit e43894f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Hype.rb

+1
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,6 @@ def compile(domain, problem, type = 'rb')
7777
end
7878
rescue
7979
puts $!, $@
80+
exit(2)
8081
end
8182
end

Hypertension_U.rb

+2
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,10 @@ def problem(state, tasks, debug = false, max_plans = -1, min_prob = 0, ordered =
133133
@plans
134134
rescue Interrupt
135135
puts 'Interrupted'
136+
exit(130)
136137
rescue
137138
puts $!, $@
139+
exit(2)
138140
end
139141

140142
#-----------------------------------------------

0 commit comments

Comments
 (0)