Authenticode.js error handling fix.
Ylian Saint-Hilaire committed
Jun 17, 2022 at 21:49 UTC
de3d47e948efbf488d4635a46eab41cbb16f9b1f
1 file changed
+3
authenticode.js
+3
@@ -491,6 +491,7 @@ function createAuthenticodeHandler(path) {
491
});
492
493
// Post the data
494
+ req.on('error', function (err) { func('' + err); });
495
req.write(requestBody);
496
req.end();
497
}
@@ -1317,6 +1318,7 @@ function createAuthenticodeHandler(path) {
1318
});
1319
1320
// Post the data
1321
+ req.on('error', function (err) { func('' + err); });
1322
req.write(requestBody);
1323
req.end();
1324
}
@@ -1622,6 +1624,7 @@ function createAuthenticodeHandler(path) {
1624
});
1625
1626
// Post the data
1627
+ req.on('error', function (err) { func('' + err); });
1628
req.write(requestBody);
1629
req.end();
1630
}