How to handle errors update