Skip to content

Commit

Permalink
Don't rethrow exceptions in parse_k8s_audit_json
Browse files Browse the repository at this point in the history
Callers aren't expected to catch execeptions and instead rely on the
bool return value to indicate whether or not the parsing was successful.
  • Loading branch information
mstemm committed Dec 10, 2019
1 parent 3bd093d commit fe4c281
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions userspace/engine/falco_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,6 @@ bool falco_engine::parse_k8s_audit_json(nlohmann::json &j, std::list<json_event>
}
catch(exception &e)
{
// Propagate the exception
rethrow_exception(current_exception());
return false;
}
}
Expand Down

0 comments on commit fe4c281

Please sign in to comment.