1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Exclude maglev bootstrap classes from stacktrace

This commit is contained in:
Tim Felgentreff 2011-06-16 10:52:11 +02:00
parent 2f5816eb08
commit 8b3a2efe74

View file

@ -1287,7 +1287,8 @@ module Sinatra
/rubygems\/custom_require\.rb$/, # rubygems require hacks
/active_support/, # active_support require hacks
/bundler(\/runtime)?\.rb/, # bundler require hacks
/<internal:/ # internal in ruby >= 1.9.2
/<internal:/, # internal in ruby >= 1.9.2
/src\/kernel\/bootstrap\/[A-Z]/ # maglev kernel files
]
# add rubinius (and hopefully other VM impls) ignore patterns ...
@ -1304,7 +1305,7 @@ module Sinatra
def caller_locations
cleaned_caller 2
end
private
# used for deprecation warnings
def warn(message)