From a8cf61fe3adcb6aa4d0e90f71477e9dcff12011e Mon Sep 17 00:00:00 2001 From: NOT_A_ROBOT Date: Mon, 29 Apr 2024 02:30:49 +0000 Subject: [PATCH] Add error handling if faq github fetch fails --- js/faq.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/faq.js b/js/faq.js index f4567fe..27f28ce 100644 --- a/js/faq.js +++ b/js/faq.js @@ -25,6 +25,9 @@ } faqLastUpdatedElement.innerText = "Last updated: " + formattedDate; + }) + .catch(error => { + console.error('Failed to fetch last updated date:', error); }); }