lib/macros4cuke/application.rb in macros4cuke-0.5.16 vs lib/macros4cuke/application.rb in macros4cuke-0.5.17

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + # File: application.rb require 'erb' require_relative 'cli/cmd-line' @@ -58,11 +60,11 @@ file_text = engine.result(binding) # Write file contents to file in binary mode in order to avoid eol # consisting of CRLF File.open(destination, 'wb') { |theFile| theFile.write(file_text) } - rescue Macros4Cuke::CmdLineError => exc - $stderr.puts exc.message + rescue Macros4Cuke::CmdLineError => e + $stderr.puts e.message exit end end end # class end # module