lib/onering/logger.rb in onering-client-0.0.86 vs lib/onering/logger.rb in onering-client-0.0.87

- old
+ new

@@ -66,12 +66,16 @@ end return false end - def self.fatal(message, source=nil) + def self.fatal(message, source=nil, raise_error=false) self.log(:fatal, message, source) - raise Onering::Client::FatalError.new(message) + raise Onering::Client::FatalError.new(message) if raise_error === true + end + + def self.fatal!(message, source=nil) + self.fatal(message, source, true) end def self.error(message, source=nil) self.log(:error, message, source) end \ No newline at end of file