From b9b301a67a64ea3e4d061353c8806496f7ff34f1 Mon Sep 17 00:00:00 2001 From: Mau Magnaguagno Date: Sun, 31 Mar 2024 22:32:44 -0300 Subject: [PATCH] Add exit codes --- Spriter.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Spriter.rb b/Spriter.rb index cc361b0..c0c1318 100644 --- a/Spriter.rb +++ b/Spriter.rb @@ -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 \ No newline at end of file