Skip to content

Commit

Permalink
tweaked the error handler to be a regex match versus a strict text ma…
Browse files Browse the repository at this point in the history
…tch.

Signed-off-by: nikhil2611 <[email protected]>
  • Loading branch information
nikhil2611 committed Sep 27, 2023
1 parent 514f9cb commit 123b1e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/berkshelf/ssl_policies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize
def add_trusted_cert(cert)
@store.add_cert(cert)
rescue OpenSSL::X509::StoreError => e
raise e unless e.message == "cert already in hash table"
raise e unless e.message.match(/cert already in hash table/)
end

def trusted_certs_dir
Expand Down

0 comments on commit 123b1e5

Please sign in to comment.