app/controllers/lookbook/application_controller.rb in lookbook-2.2.1 vs app/controllers/lookbook/application_controller.rb in lookbook-2.2.2
- old
+ new
@@ -55,9 +55,11 @@
def raise_not_found(message = "Page not found")
raise Lookbook::RoutingError, message
end
def handle_error(err)
+ raise err if Lookbook.config.preview_disable_error_handling
+
@error = err.is_a?(Lookbook::Error) ? err : Lookbook::Error.new(original: err)
@status_code = get_status_code(err)
view = (@status_code == :not_found) ? "not_found" : "default"
layout = current_layout || "lookbook/skeleton"