class method
OpenSSL.errors
() -> ::Array[::String]
OpenSSL.errors → [String...]
ext/openssl/ossl.c
View on GitHub ↗
static VALUE
ossl_get_errors(VALUE _)
{
VALUE ary;
long e;
ary = rb_ary_new();
while ((e = ERR_get_error()) != 0){
rb_ary_push(ary, rb_str_new2(ERR_error_string(e, NULL)));
}
return ary;
}
Returns any remaining errors held in the OpenSSL thread-local error queue and clears the queue. This should normally return an empty array.
This is intended for debugging Ruby/OpenSSL. If you see any errors here, it likely indicates a bug in the extension. Please file an issue at github.com/ruby/openssl.
For debugging your program, OpenSSL.debug= may be useful.