Added warning on network error

Fixed indentation