Skip to content

Commit 312dcbf

Browse files
committed
fix: references removed error class
1 parent a74e183 commit 312dcbf

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

helpers/handle_error.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ def handle_error(error) # rubocop:disable Metrics/MethodLength
1111
when Html2rss::Config::DynamicParams::ParamsMissing,
1212
Roda::RodaPlugins::TypecastParams::Error
1313
set_error_response('Parameters missing or invalid', 422)
14-
when Html2rss::Selectors::PostProcessors::UnknownPostProcessorName,
15-
Html2rss::Selectors::Extractors::UnknownExtractorName
14+
when Html2rss::Selectors::PostProcessors::UnknownPostProcessorName
1615
set_error_response('Invalid feed config', 422)
1716
when LocalConfig::NotFound,
1817
Html2rss::Configs::ConfigNotFound

spec/routes/auto_source_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def app = described_class
9494

9595
it 'responds with Error', :aggregate_failures do
9696
expect(response.status).to eq 422
97-
expect(response.body).to match(/Invalid configuration: {:strategy/)
97+
expect(response.body).to match(/Html2rss::Config::InvalidConfig/)
9898
end
9999
end
100100
end

0 commit comments

Comments
 (0)