diff options
Diffstat (limited to 'CLI/ruby/bin')
| -rwxr-xr-x | CLI/ruby/bin/game-of-life | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/CLI/ruby/bin/game-of-life b/CLI/ruby/bin/game-of-life index f83d72b..0230271 100755 --- a/CLI/ruby/bin/game-of-life +++ b/CLI/ruby/bin/game-of-life @@ -60,10 +60,7 @@ begin CLI.start(ARGV) rescue SystemExit, Interrupt "Do nothing when user exits with Interrupt (CMD/Ctrl + C)" -rescue NotImplementedError => e - puts e.message - exit(-1) -rescue GameOfLife::Error => e +rescue NotImplementedError, GameOfLife::Error => e puts e.message exit(-1) end |
