From b7774f5aae4880662412e4a845f5302413f9245d Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Fri, 28 Mar 2014 10:53:08 +0200 Subject: rescue unresolvable names --- lib/oxidized/nodes.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/oxidized') diff --git a/lib/oxidized/nodes.rb b/lib/oxidized/nodes.rb index eab2b1d..b2c3542 100644 --- a/lib/oxidized/nodes.rb +++ b/lib/oxidized/nodes.rb @@ -15,7 +15,9 @@ module Oxidized _node = Node.new node new.push _node rescue ModelNotFound => err - Log.error "node %s raised %s with message %s" % [node, err.class, err.message] + Log.error "node %s raised %s with message '%s'" % [node, err.class, err.message] + rescue Resolv::ResolvError => err + Log.error "node %s is not resolvable, raised %s with message '%s'" % [node, err.class, err.message] end end replace new -- cgit v1.2.1