| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 93ea166 commit c757fa5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1037,6 +1037,8 @@ void SecureContext::LoadPKCS12(const FunctionCallbackInfo<Value>& args) { | |||
| 1037 | 1037 | // TODO(@jasnell): Should this use ThrowCryptoError? | |
| 1038 | 1038 | unsigned long err = ERR_get_error(); // NOLINT(runtime/int) | |
| 1039 | 1039 | const char* str = ERR_reason_error_string(err); | |
| 1040 | + str = str != nullptr ? str : "Unknown error"; | ||
| 1041 | + | ||
| 1040 | 1042 | return env->ThrowError(str); | |
| 1041 | 1043 | } | |
| 1042 | 1044 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments