summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-03-28 10:53:08 +0200
committerSaku Ytti <saku@ytti.fi>2014-03-28 10:53:08 +0200
commitb7774f5aae4880662412e4a845f5302413f9245d (patch)
tree72add0c6b2ce66ca896bcb1b274398eb1ef10b6c
parente1532e713595a218dc871b3ac2d2de3d3158ce15 (diff)
rescue unresolvable names
-rw-r--r--lib/oxidized/nodes.rb4
1 files changed, 3 insertions, 1 deletions
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