Skip to content

Commit

Permalink
Let's report the file name when hiera data fails to parse
Browse files Browse the repository at this point in the history
Reformatting the error
  • Loading branch information
David Danzilio committed Apr 29, 2015
1 parent e713db6 commit 8d17ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet-syntax/hiera.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def check(filelist)
begin
YAML.load_file(hiera_file)
rescue Exception => error
errors << error
errors << "ERROR: Failed to parse #{hiera_file}: #{error}"
end
end

Expand Down

0 comments on commit 8d17ea2

Please sign in to comment.