setError for network