From efb08893042d687cae48cd06a44db039fa9a951a Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Thu, 24 Jul 2014 22:36:40 +0300 Subject: return false when crash in model/node Without this, config gets 'true' value, which is not string, and git output will barf. --- lib/oxidized/node.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.1