Added error alert in try/catch