iOS Swift - Networking
Given this code snippet, what will happen if the network call fails?
func fetchData() {
URLSession.shared.dataTask(with: url) { data, response, error in
guard error == nil else {
print("Failed with error")
return
}
print("Data received")
}.resume()
}