Skip to content

Commit

Permalink
Add exit codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Maumagnaguagno committed Apr 1, 2024
1 parent 74b50b3 commit b9b301a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Spriter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ def save(filename, r1 = 0, g1 = 255, b1 = 0, a1 = 255, r2 = 0, g2 = 0, b2 = 0, a
p Time.now.to_f - t
rescue Interrupt
puts 'Interrupted'
exit(130)
rescue
puts $!, $@
exit(2)
end
end

0 comments on commit b9b301a

Please sign in to comment.