Method: Spring::Application#print_exception
- Defined in:
- lib/spring/application.rb
#print_exception(stream, error) ⇒ Object
277 278 279 280 281 |
# File 'lib/spring/application.rb', line 277 def print_exception(stream, error) first, rest = error.backtrace.first, error.backtrace.drop(1) stream.puts("#{first}: #{error} (#{error.class})") rest.each { |line| stream.puts("\tfrom #{line}") } end |