Skip to content

Commit

Permalink
improve nil included_varfiles error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Spiers committed Feb 21, 2018
1 parent addbbff commit e523e32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ansible_viz/resolver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ def resolve_task_include_vars(dict, task)
end
}
if task[:included_varfiles].include?(nil)
raise "Task #{task[:fqn]} has nil varfiles"
raise "Task #{task[:fqn]}'s included varfiles includes a nil: " +
task[:included_varfiles].inspect
end
end

Expand Down

0 comments on commit e523e32

Please sign in to comment.