mirror of
https://github.com/lostisland/faraday.git
synced 2025-08-10 00:03:15 -04:00
live server returns exceptions
This commit is contained in:
parent
489abd66c1
commit
3768ed463d
@ -1,5 +1,7 @@
|
||||
require 'sinatra'
|
||||
set :logging, false
|
||||
set \
|
||||
:logging => false,
|
||||
:show_exceptions => false
|
||||
|
||||
[:get, :post, :put, :patch, :delete, :options].each do |method|
|
||||
send(method, '/echo') do
|
||||
@ -60,3 +62,7 @@ get '/slow' do
|
||||
sleep 10
|
||||
[200, {}, 'ok']
|
||||
end
|
||||
|
||||
error do |e|
|
||||
"#{e.class}\n#{e.to_s}\n#{e.backtrace.join("\n")}"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user