1
0
Fork 0

reflect error message on client side when there is an error merging calendars

This commit is contained in:
Ryan Mwangi 2024-10-21 15:21:34 +03:00
parent 94e3fe49b3
commit 65520b70f2
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ const form = document.getElementById('merge-form');
console.log('Links added successfully!'); console.log('Links added successfully!');
}) })
.catch((error) => { .catch((error) => {
console.error(error); console.error('Error:', error);
result.innerHTML = 'Error merging calendars'; result.innerHTML = `Error merging calendars: ${error.message}`
}); });
}); });