Update how to manage and display error message