debugged-ruby 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/debugged-ruby.rb +6 -1
- data/lib/debugged-ruby/version.rb +1 -1
- metadata +1 -1
data/lib/debugged-ruby.rb
CHANGED
@@ -32,8 +32,13 @@ module Debugged
|
|
32
32
|
def self.report(e, data=nil)
|
33
33
|
|
34
34
|
unless data.is_a? Hash or data.nil?
|
35
|
-
raise ArgumentError, 'Data argument is not Hash'
|
36
35
|
@@log.error("ERROR - data argument not passed as a Hash")
|
36
|
+
raise ArgumentError, 'Data argument is not Hash'
|
37
|
+
end
|
38
|
+
|
39
|
+
unless e.is_a? Exception
|
40
|
+
@@log.error("ERROR - exception argument not passed as an Exception")
|
41
|
+
raise ArugumentError, 'Exception argument is not Exception'
|
37
42
|
end
|
38
43
|
|
39
44
|
data ||= {}
|