From 65520b70f2f42405b3cd5d86c3a7eaeb387b3b7e Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Mon, 21 Oct 2024 15:21:34 +0300 Subject: [PATCH] reflect error message on client side when there is an error merging calendars --- script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index 6460c52..bd34422 100644 --- a/script.js +++ b/script.js @@ -52,8 +52,8 @@ const form = document.getElementById('merge-form'); console.log('Links added successfully!'); }) .catch((error) => { - console.error(error); - result.innerHTML = 'Error merging calendars'; + console.error('Error:', error); + result.innerHTML = `Error merging calendars: ${error.message}` }); });