func presentError()

in ScrollingFeed/Controllers/StreamsViewController.swift [87:93]


    func presentError(_ error: Error, componentName: String) {
        DispatchQueue.main.async {
            let alert = UIAlertController(title: "\(componentName) Error", message: String(reflecting: error), preferredStyle: .alert)
            alert.addAction(UIAlertAction(title: "Close", style: .cancel))
            self.present(alert, animated: true)
        }
    }