You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Wrap registry login errors
Similar to all other request types, this will guarantee more consistent diagnostics if there are underlying `URLSession` errors etc.
Co-authored-by: tomer doron <tomer@apple.com>
@@ -1674,6 +1676,7 @@ public enum RegistryError: Error, CustomStringConvertible {
1674
1676
case unauthorized
1675
1677
case authenticationMethodNotSupported
1676
1678
case forbidden
1679
+
case loginFailed(url:URL, error:Error)
1677
1680
case availabilityCheckFailed(registry:Registry, error:Error)
1678
1681
case registryNotAvailable(Registry)
1679
1682
case packageNotFound
@@ -1819,6 +1822,8 @@ public enum RegistryError: Error, CustomStringConvertible {
1819
1822
let previousVersion
1820
1823
):
1821
1824
return"the signing entity '\(String(describing: latest))' from \(registry) for \(package) version \(version) is different from the previously recorded value '\(previous)' for version \(previousVersion)"
1825
+
case.loginFailed(let url,let error):
1826
+
return"registry login using \(url) failed: \(error.interpolationDescription)"
0 commit comments