exe/aip2aixm in aipp-0.1.0 vs exe/aip2aixm in aipp-0.1.2

- old
+ new

@@ -40,19 +40,19 @@ def run extensions = [(:ofm if ofm)].compact filename = [fir, aip, airac].join('_') + '.aixm' loader = AIPP::Loader.new(fir: fir, aip: aip, airac: airac, limit: limit) - aixm = loader.aixm.to_xml(*extensions) + aixm = loader.aixm.to_aixm(*extensions) File.write(Pathname.new(Dir.pwd).join(filename), aixm) end end begin executable = Executable.new executable.run rescue => exception - if executable.verbose + if executable&.verbose raise exception else puts "#{File.basename($0)}: #{exception.message}" exit 1 end