Skip to content

Commit 57bca2e

Browse files
committed
fix: simplify exception handling in CreateStepInfo method
1 parent 0f11279 commit 57bca2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cucumber_cpp/library/engine/FeatureFactory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ namespace cucumber_cpp::library::engine
156156
{
157157
scenarioInfo.Children().push_back(featureTreeFactory.CreateStepInfo(stepTypeLut.at(*pickleStep.type), pickleStep.text, scenarioInfo, step.location.line, step.location.column.value_or(0), std::move(table)));
158158
}
159-
catch (const std::out_of_range& e)
159+
catch (const std::out_of_range&)
160160
{
161161

162162
throw UnsupportedAsteriskError{ std::format("{}:{}: * steps are not supported", scenarioInfo.FeatureInfo().Path().string(), step.location.line) };

0 commit comments

Comments
 (0)