@@ -670,23 +670,15 @@ public RubyBoolean verify(final IRubyObject key) {
670670 return runtime .getTrue ();
671671 }
672672 catch (CertificateException e ) {
673- debugStackTrace (runtime , "Certificate #verify failed " , e );
673+ debugStackTrace (runtime , "X509Cert #verify" , e );
674674 throw newCertificateError (runtime , e );
675675 }
676- catch (NoSuchAlgorithmException e ) {
676+ catch (NoSuchProviderException | NoSuchAlgorithmException e ) {
677677 debugStackTrace (runtime , e );
678678 throw newCertificateError (runtime , e );
679679 }
680- catch (NoSuchProviderException e ) {
681- debugStackTrace (runtime , e );
682- throw newCertificateError (runtime , e );
683- }
684- catch (SignatureException e ) {
685- debug (runtime , "Certificate#verify failed" , e );
686- return runtime .getFalse ();
687- }
688- catch (InvalidKeyException e ) {
689- debug (runtime , "Certificate#verify failed" , e );
680+ catch (SignatureException |InvalidKeyException e ) {
681+ debug (runtime , "X509Cert#verify failed" , e );
690682 return runtime .getFalse ();
691683 }
692684 }
0 commit comments