print exception class
This commit is contained in:
1 parent
53ac0a2963
commit
7c5a2ebe3a
1 file changed
+1
-1
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
begin
|
begin
|
||||||
rescue Interrupt => e
|
rescue Interrupt => e
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
$stderr.puts "Exception: #{e}"
|
$stderr.puts "#{e.class}: #{e}"
|
||||||
e.backtrace.each do |entry|
|
e.backtrace.each do |entry|
|
||||||
$stderr.puts "> #{entry}"
|
$stderr.puts "> #{entry}"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user