diff --git a/lib/template/lib/endpoints/base.rb b/lib/template/lib/endpoints/base.rb index a7699e81..c4e71b9e 100644 --- a/lib/template/lib/endpoints/base.rb +++ b/lib/template/lib/endpoints/base.rb @@ -17,7 +17,7 @@ class Base < Sinatra::Base also_reload '../**/*.rb' end - error Sinatra::NotFound do + error Sinatra::NotFound, Sequel::NoMatchingRow do raise Pliny::Errors::NotFound end end