Fix error unwrapping (previous commit)
This commit is contained in:
parent
f48349cde9
commit
00bd826096
|
@ -59,9 +59,7 @@ final class ProfileImporter: ObservableObject {
|
||||||
registry: registry
|
registry: registry
|
||||||
)
|
)
|
||||||
} catch {
|
} catch {
|
||||||
if let error = error as? PassepartoutError,
|
if let error = error as? PassepartoutError, error.code == .OpenVPN.passphraseRequired {
|
||||||
let reason = error.reason as? PassepartoutError,
|
|
||||||
reason.code == .OpenVPN.passphraseRequired {
|
|
||||||
withPassphrase.append(url)
|
withPassphrase.append(url)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue