improve error message when fetch data fails