Added error message on API fail