From cc8396426b0e8a3ae59337e995a07edf15c25148 Mon Sep 17 00:00:00 2001 From: Joe Chellman Date: Fri, 11 Jun 2021 10:05:33 -0400 Subject: [PATCH] Allow certificate validation errors to be caught instead of terminating --- lib/credentials/certificate/prepare.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/credentials/certificate/prepare.js b/lib/credentials/certificate/prepare.js index b06db4a5..a169f6aa 100644 --- a/lib/credentials/certificate/prepare.js +++ b/lib/credentials/certificate/prepare.js @@ -17,7 +17,12 @@ module.exports = function(dependencies) { return loaded; } parsed.production = credentials.production; - validate(parsed); + try { + validate(parsed); + } catch(err) { + console.error(err); + } + return loaded; }