| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 115775f commit a40989f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -597,9 +597,8 @@ EnginePointer LoadEngineById(const char* id, CryptoErrorStore* errors) { | |||
| 597 | 597 | } | |
| 598 | 598 | ||
| 599 | 599 | if (!engine && errors != nullptr) { | |
| 600 | - if (ERR_get_error() != 0) { | ||
| 601 | - errors->Capture(); | ||
| 602 | - } else { | ||
| 600 | + errors->Capture(); | ||
| 601 | + if (errors->Empty()) { | ||
| 603 | 602 | errors->Insert(NodeCryptoError::ENGINE_NOT_FOUND, id); | |
| 604 | 603 | } | |
| 605 | 604 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments