From 5ae57f68a0085c6116d5aef82bf786f82ecde59b Mon Sep 17 00:00:00 2001 From: Brett Berenz Date: Thu, 15 Jul 2021 18:21:50 -0400 Subject: [PATCH] Unsuppress promise rejection (#836) #835 - error when retrieving cert prints warning --- js/qz-tray.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/qz-tray.js b/js/qz-tray.js index 8f54e6397..d178b7c67 100644 --- a/js/qz-tray.js +++ b/js/qz-tray.js @@ -373,7 +373,10 @@ var qz = (function() { }); } - _qz.security.callCert().then(sendCert).catch(sendCert); + _qz.security.callCert().then(sendCert).catch(function(error) { + _qz.log.warn("Failed to get certificate:", error); + sendCert(null); + }); }, /** Generate unique ID used to map a response to a call. */