From cf57e1be32af2288013f86e4abd8d2f07ef0bf89 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 25 Nov 2017 16:15:36 -0800 Subject: [PATCH] Log a message when favicon download fails. --- Evergreen/Favicons/SingleFaviconDownloader.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Evergreen/Favicons/SingleFaviconDownloader.swift b/Evergreen/Favicons/SingleFaviconDownloader.swift index 77ccf719c..cac633ae4 100644 --- a/Evergreen/Favicons/SingleFaviconDownloader.swift +++ b/Evergreen/Favicons/SingleFaviconDownloader.swift @@ -138,6 +138,10 @@ private extension SingleFaviconDownloader { return } + if let error = error { + appDelegate.logMessage("Error downloading favicon at \(url): \(error)", type: .warning) + } + callback(nil) } }