forked from ryanmwangi/CalMerger
reflect error message on client side when there is an error merging calendars
This commit is contained in:
parent
94e3fe49b3
commit
65520b70f2
|
@ -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}`
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue