Skip to content

Commit

Permalink
Show vlan before throwing exception
Browse files Browse the repository at this point in the history
  • Loading branch information
taliesins committed Dec 7, 2016
1 parent 853190e commit 5adf68e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/vSphere/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,9 @@ def get_network_by_name(dc, name)
end
end

fail(Errors::VSphereError, :missing_vlan + ' - ' + name) if base.nil?
puts I18n.t( :missing_vlan + ' - ' + name)

fail(Errors::VSphereError, :missing_vlan) if base.nil?

base
end
Expand Down

0 comments on commit 5adf68e

Please sign in to comment.