Added error message when no data is available