Browse Source

tls_wrap: return Error not throw for missing cert

Timothy J Fontaine 12 years ago
parent
commit
2fc34d75d9
  1. 3
      src/tls_wrap.cc

3
src/tls_wrap.cc

@ -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);

Loading…
Cancel
Save