Skip to content

Conversation

@SangHakLee
Copy link

@SangHakLee SangHakLee commented May 28, 2025

Problem

When validating an invalid certificate using checkCertificate, a runtime error can occur:

This happens because the implementation tries to call .toString() on stderr, which can be undefined in some cases.

#407

@SangHakLee SangHakLee changed the title fix: potential TypeError in checkCertificate when stderr is undefined #407 Fixes #123 potential TypeError in checkCertificate when stderr is undefined May 28, 2025
Copy link
Owner

@Dexus Dexus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this case, would it not more correct to fix the stderr if condition and not move the error if condition?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants