diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc index 28ca5732c7e..26ba90794dd 100644 --- a/src/tls_wrap.cc +++ b/src/tls_wrap.cc @@ -798,7 +798,8 @@ void TLSCallbacks::VerifyError(const FunctionCallbackInfo& args) { // We requested a certificate and they did not send us one. // Definitely an error. // XXX is this the right error message? - return ThrowError("UNABLE_TO_GET_ISSUER_CERT"); + Local s = String::New("UNABLE_TO_GET_ISSUER_CERT"); + return args.GetReturnValue().Set(Exception::Error(s)); } X509_free(peer_cert);