Better error message when no messages returned from API