Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace C++ exit(1) statements with exception handling #329

Merged
merged 8 commits into from
Oct 20, 2023
Prev Previous commit
Next Next commit
add feature's name to the error message
anilbey committed Oct 20, 2023
commit 443e083cffc2fe876bdaca0c6b0a402b9ef828d9
4 changes: 2 additions & 2 deletions efel/cppcore/cfeature.cpp
Original file line number Diff line number Diff line change
@@ -374,9 +374,9 @@ int cFeature::calc_features(const string& name) {
map<string, vector<featureStringPair> >::const_iterator lookup_it(
fptrlookup.find(name));
if (lookup_it == fptrlookup.end()) {
throw std::runtime_error("Feature dependency file entry or pointer table entry is missing.");
throw std::runtime_error("Feature dependency file entry or pointer table "
"entry for '" + name + "' is missing.");
}

bool last_failed = false;

for (vector<featureStringPair>::const_iterator pfptrstring =