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 48badb0 commit 22fcf4d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Hype.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,5 +241,6 @@ def execute
end
rescue
puts $!, $@
exit(2)
end
end
4 changes: 4 additions & 0 deletions Hypertension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,10 @@ def problem(state, tasks, debug = false, ordered = true)
plan
rescue Interrupt
puts 'Interrupted'
exit(130)
rescue
puts $!, $@
exit(2)
end

else
Expand All @@ -260,8 +262,10 @@ def problem(state, tasks, debug = false, ordered = true)
plan
rescue Interrupt
puts 'Interrupted'
exit(130)
rescue
puts $!, $@
exit(2)
end

end
Expand Down
1 change: 1 addition & 0 deletions extensions/Knoblock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,6 @@ def dot_str(i)
Knoblock.create_hierarchy(PDDL_Parser.operators, PDDL_Parser.predicates, goals, true)
rescue
puts $!, $@
exit(2)
end
end

0 comments on commit 22fcf4d

Please sign in to comment.