We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5371d99 commit b6b0a5cCopy full SHA for b6b0a5c
mitm-socket/lib/CertificateGenerator.ts
@@ -74,6 +74,13 @@ export default class CertificateGenerator extends BaseIpcHandler {
74
const pending = this.pendingCertsById.get(message.id);
75
this.pendingCertsById.delete(message.id);
76
77
+ if (!pending) {
78
+ this.logger.warn('CertificateGenerator.unprocessableMessage:notFound', {
79
+ message,
80
+ });
81
+ return;
82
+ }
83
+
84
if (message.status === 'error') {
85
pending.reject(new Error(message.error));
86
} else if (message.status === 'certs') {
0 commit comments