lib/gamefic/shell.rb in gamefic-1.2.0 vs lib/gamefic/shell.rb in gamefic-1.3.0

- old
+ new

@@ -19,11 +19,14 @@ Dir.mktmpdir 'gamefic_' do |dir| puts 'Loading...' decompress file, dir run_game(dir) end - rescue StandardError => e + rescue Zip::Error => e puts "'#{file}' does not appear to be a valid Gamefic file." + show_exception(e) if options[:verbose] + rescue StandardError => e + puts "An error occurred: #{e.message}" show_exception(e) if options[:verbose] end desc 'info FILE_NAME', 'Print information about a (.gfic) game' option :verbose, type: :boolean, aliases: :v, desc: "Don't suppress Ruby exceptions"