From ccfb1793ca80594a368cb669b97fa3ce0c50a09c Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Tue, 14 May 2024 07:29:39 -0700 Subject: [PATCH] fix(demo): Log demo errors to the console (#68) When a "request fails" in the demo, sometimes it is because of an exception elsewhere in the process. This logs those errors to the console so that they can be traced and fixed. --- demo/query.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demo/query.js b/demo/query.js index bc6b644..fdc29c7 100644 --- a/demo/query.js +++ b/demo/query.js @@ -53,6 +53,7 @@ document.addEventListener('DOMContentLoaded', () => { window.results.textContent = formatObjectToString(mksa.getConfiguration()); } catch (error) { + console.log(error); window.results.textContent = formatObjectToString({error: error.message}); } }); // emeRun click listener @@ -113,6 +114,7 @@ document.addEventListener('DOMContentLoaded', () => { formatObjectToString(mksa.getConfiguration()); } } catch (error) { + console.log(error); window.results.textContent = formatObjectToString({error: error.message}); } }); // mcRun click listener