From 4a1702fc1c2892b7ffd9493059ee9e67a8460016 Mon Sep 17 00:00:00 2001 From: Ben Myers Date: Thu, 23 Jun 2022 11:34:34 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=B5=20Log=20storage=20download=20URL?= =?UTF-8?q?=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/EasyFirebase/Services/Storage/EasyStorage.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/EasyFirebase/Services/Storage/EasyStorage.swift b/Sources/EasyFirebase/Services/Storage/EasyStorage.swift index 5af5ff4..8c32784 100644 --- a/Sources/EasyFirebase/Services/Storage/EasyStorage.swift +++ b/Sources/EasyFirebase/Services/Storage/EasyStorage.swift @@ -96,7 +96,8 @@ public struct EasyStorage { task = ref.putData(data, metadata: metadata) { (_, _) in task?.removeAllObservers() task = nil - ref.downloadURL { (url, _) in + ref.downloadURL { (url, error) in + EasyFirebase.log(error) resource.url = url completion(url) }