Commit 50fdc6d

mo khan <mo@mokhan.ca>
2014-11-11 22:35:15
add oops!.
1 parent 5c366de
Changed files (1)
lib/urkel.rb
@@ -18,6 +18,11 @@ module Urkel
     @connection.publish(error)
   end
 
+  def self.oops!(error)
+    raise InvalidConfigurationError.new unless @connection
+    @connection.publish!(error)
+  end
+
   def self.reset
     @connection = nil
   end