summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-07-24 22:36:40 +0300
committerSaku Ytti <saku@ytti.fi>2014-07-24 22:36:40 +0300
commitefb08893042d687cae48cd06a44db039fa9a951a (patch)
treeff2b4c9158caf775c913c3cddc80f48603d5609f
parentef22db853ce1ac0aacb81c30c0d955ff811368cb (diff)
return false when crash in model/node
Without this, config gets 'true' value, which is not string, and git output will barf.
-rw-r--r--lib/oxidized/node.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb
index 188c267..6bc2b0f 100644
--- a/lib/oxidized/node.rb
+++ b/lib/oxidized/node.rb
@@ -71,6 +71,7 @@ module Oxidized
fh.puts err.backtrace
end
Log.error '%s raised %s with msg "%s", %s saved' % [self.ip, err.class, err.message, file]
+ return false
end
end