From 2fc34d75d96e2082a06490f8f08862e47a5cef35 Mon Sep 17 00:00:00 2001 From: Timothy J Fontaine Date: Mon, 8 Jul 2013 05:03:57 +0000 Subject: [PATCH] tls_wrap: return Error not throw for missing cert --- src/tls_wrap.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc index 28ca5732c7..26ba90794d 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);