tls_wrap: return Error not throw for missing cert

This commit is contained in:
Timothy J Fontaine committed 2013-07-09 00:13:02 +00:00
1 parent 22668db73d
commit 2fc34d75d9
1 file changed
+2 -1
+2 -1
View File
@@ -798,7 +798,8 @@ void TLSCallbacks::VerifyError(const FunctionCallbackInfo<Value>& 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<String> s = String::New("UNABLE_TO_GET_ISSUER_CERT");
return args.GetReturnValue().Set(Exception::Error(s));
}
X509_free(peer_cert);