Method: ChefAPI::ErrorCollection#full_messages
- Defined in:
- lib/chef-api/error_collection.rb
#full_messages ⇒ Array<String>
Output the full messages for each error. This is useful for displaying information about validation to the user when something goes wrong.
36 37 38 39 40 41 42 |
# File 'lib/chef-api/error_collection.rb', line 36 def map do |key, errors| errors.map do |error| "`#{key}' #{error}" end end.flatten end |