Skip to content

Commit

Permalink
tls_wrap: return Error not throw for missing cert
Browse files Browse the repository at this point in the history
  • Loading branch information
tjfontaine committed Jul 8, 2013
1 parent 82ff891 commit e1f5ced
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tls_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e1f5ced

Please sign in to comment.