Skip to content

Commit

Permalink
automatically turn NoMatchingRow exceptions in a 404
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Belo committed Sep 16, 2015
1 parent 06766df commit 3252083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/template/lib/endpoints/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3252083

Please sign in to comment.