lib/interpol/stub_app.rb in interpol-0.2.0 vs lib/interpol/stub_app.rb in interpol-0.2.1

- old
+ new

@@ -18,10 +18,10 @@ self.class.interpol_config end def example_for(endpoint, version, message_type) example = endpoint.find_example_for!(version, message_type) - rescue ArgumentError + rescue NoEndpointDefinitionFoundError interpol_config.request_version_unavailable(self, version, endpoint.available_versions) else example.apply_filters(interpol_config.filter_example_data_blocks, request.env) end end