raise error message when network is unavailable