3 ms·
I love this! To get it to work with my mixed Padrino/Sinatra rack app I had to do this in each app: if PADRINO_ENV == "development" set :raise_error
by __david__ 14y ago
I love this!
To get it to work with my mixed Padrino/Sinatra rack app I had to do this in each app:
if PADRINO_ENV == "development"
set :raise_errors, true
set :show_exceptions, false
end
and
use BetterErrors::Middleware if PADRINO_ENV == "development"
in my "config.ru".
I'm not deeply familiar with Padrino or Sinatra and so it took a lot of experimentation (and source reading) to find the right incantation. But it's working great now!
- veesahni 14y agoanother approach, which doesn't require modification of the rackup file: https://github.com/padrino/padrino-recipes/blob/master/plugins/better_errors_plugin.rb https://github.com/padrino/padrino-recipes/blob/master/plugi...