Skip to content

Commit

Permalink
fix: catch directory not found when iterating over OCSP cache
Browse files Browse the repository at this point in the history
Signed-off-by: James Chapman <[email protected]>
  • Loading branch information
james-ctc committed Jun 17, 2024
1 parent 1ee9a96 commit c0dc7e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/evse_security/evse_security.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,8 @@ std::optional<fs::path> EvseSecurity::retrieve_ocsp_cache_internal(const Certifi
}
} catch (const NoCertificateFound& e) {
EVLOG_error << "Could not find any certificate for ocsp cache retrieve: " << e.what();
} catch (const std::filesystem::filesystem_error& e) {
EVLOG_error << "Could not iterate over ocsp cache: " << e.what();
}
} catch (const CertificateLoadException& e) {
EVLOG_error << "Could not retrieve ocsp cache, certificate load failure: " << e.what();
Expand Down

0 comments on commit c0dc7e3

Please sign in to comment.