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!');
|
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}`
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue