bin/review-compile in review-3.1.0 vs bin/review-compile in review-3.2.0

- old
+ new

@@ -1,8 +1,8 @@ #!/usr/bin/env ruby # -# Copyright (c) 2008-2018 Kenshi Muto, Masayoshi Takahashi, KADO Masanori, Minero Aoki +# Copyright (c) 2008-2019 Kenshi Muto, Masayoshi Takahashi, KADO Masanori, Minero Aoki # Copyright (c) 1999-2007 Minero Aoki # # This program is free software. # You can distribute or modify this program under the terms of # the GNU LGPL, Lesser General Public License version 2.1. @@ -48,11 +48,11 @@ parse_opts begin loader = ReVIEW::YAMLLoader.new if @config['yaml'] - error "#{config['yaml']} not found." unless File.exist?(@config['yaml']) + error "#{@config['yaml']} not found." unless File.exist?(@config['yaml']) begin @config.deep_merge!(loader.load_file(@config['yaml'])) rescue => e error "yaml error #{e.message}" end @@ -107,12 +107,12 @@ write "#{part.name}#{compiler.strategy.extname}", str unless @check_only end else raise "must not happen: #{@mode}" end - rescue ReVIEW::ApplicationError => err - error(err.message) + rescue ReVIEW::ApplicationError => e + error(e.message) end end def parse_opts opts = OptionParser.new @@ -160,11 +160,11 @@ @target = 'html' else raise OptionParser::ParseError, 'no target given' end end - rescue OptionParser::ParseError => err - warn(err.message) + rescue OptionParser::ParseError => e + warn(e.message) $stderr.puts opts.help exit 1 end end