debugged-ruby 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 ||= {}
|