diff options
author | Saku Ytti <saku@ytti.fi> | 2014-03-28 10:53:08 +0200 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2014-03-28 10:53:08 +0200 |
commit | b7774f5aae4880662412e4a845f5302413f9245d (patch) | |
tree | 72add0c6b2ce66ca896bcb1b274398eb1ef10b6c | |
parent | e1532e713595a218dc871b3ac2d2de3d3158ce15 (diff) |
rescue unresolvable names
-rw-r--r-- | lib/oxidized/nodes.rb | 4 |
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 |