Skip to content

Commit fa3a9bc

Browse files
committed
last nit
1 parent 9650b69 commit fa3a9bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Coder Desktop/Coder Desktop/NetworkExtension.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extension CoderVPNService {
5656
try await tunnel.removeFromPreferences()
5757
}
5858
} catch {
59-
throw VPNServiceError.internalError("couldn't remove tunnels: \(error)")
59+
throw .internalError("couldn't remove tunnels: \(error)")
6060
}
6161
}
6262

@@ -99,10 +99,10 @@ extension CoderVPNService {
9999
do {
100100
tunnels = try await NETunnelProviderManager.loadAllFromPreferences()
101101
} catch {
102-
throw VPNServiceError.internalError("couldn't load tunnels: \(error)")
102+
throw .internalError("couldn't load tunnels: \(error)")
103103
}
104104
if tunnels.isEmpty {
105-
throw VPNServiceError.internalError("no tunnels found")
105+
throw .internalError("no tunnels found")
106106
}
107107
return tunnels.first!
108108
}

0 commit comments

Comments
 (0)