summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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