Skip to content

Commit

Permalink
wire the run list expansion failure inspector into base formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsdeleo committed Jun 22, 2012
1 parent 34491da commit 8db8a8f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chef/lib/chef/formatters/base.rb
Expand Up @@ -150,6 +150,12 @@ def node_load_failed(node_name, exception, config)
describe_error(headline, error_inspector)
end

def run_list_expand_failed(node, exception)
error_inspector = ErrorInspectors::RunListExpansionErrorInspector.new(node, exception)
headline = "Error expanding the run_list:"
describe_error(headline, error_inspector)
end

def resource_failed(resource, action, exception)
error_inspector = ErrorInspectors::APIErrorInspector.new(resource, action, exception)
headline = "Error executing action `#{action}` on resource '#{resource}'"
Expand Down

0 comments on commit 8db8a8f

Please sign in to comment.