There was an error while loading. Please reload this page.
1 parent 7d61c92 commit 05542c2Copy full SHA for 05542c2
1 file changed
app/controllers/suppliers_controller.rb
@@ -4,6 +4,7 @@ class SuppliersController < ApplicationController
4
class SupplierNotFoundError < StandardError; end
5
6
include SwiftypeMeta
7
+
8
rescue_from SupplierNotFoundError, with: :not_found
9
rescue_from Contentful::GraphqlAdapter::QueryError, with: :internal_server_error
10
0 commit comments