lib/aws/cfn/compiler/mixins/parse.rb in aws-cfn-compiler-0.9.26 vs lib/aws/cfn/compiler/mixins/parse.rb in aws-cfn-compiler-0.9.27

- old
+ new

@@ -120,11 +120,11 @@ item[section].merge! JSON.parse(content) elsif filename =~ /\.ya?ml\z/i begin item[section].merge! YAML.load(content) # item[section].merge! YAML.safe_load(content) # rescue => e - logger.fatal "YAML error: #{e.message}" + logger.fatal "YAML error: #{e.message} in #{section}::#{rsrc}" raise e end else next end @@ -137,10 +137,10 @@ end @logger.error " !! error: Brick in #{filn} does not define #{section}/#{base}!?\nIt defines these: #{item[section].keys}" abort! end rescue - abort! " !! error: #{$!}" + abort! " !! error: #{$!} in #{section}::#{rsrc}" end item.each { |sect,hash| hash.keys.each do |key| if @items.has_key?(sect) if @items[sect].has_key?(key)