template/lib/endpoints/base.rb in pliny-0.2.0 vs template/lib/endpoints/base.rb in pliny-0.2.1

- old
+ new

@@ -12,9 +12,13 @@ configure :development do register Sinatra::Reloader end + error Pliny::Errors::Error do + Pliny::Errors::Error.render(env["sinatra.error"]) + end + not_found do content_type :json status 404 "{}" end