File tree 1 file changed +3
-3
lines changed
Coder Desktop/Coder Desktop
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ extension CoderVPNService {
56
56
try await tunnel. removeFromPreferences ( )
57
57
}
58
58
} catch {
59
- throw VPNServiceError . internalError ( " couldn't remove tunnels: \( error) " )
59
+ throw . internalError( " couldn't remove tunnels: \( error) " )
60
60
}
61
61
}
62
62
@@ -99,10 +99,10 @@ extension CoderVPNService {
99
99
do {
100
100
tunnels = try await NETunnelProviderManager . loadAllFromPreferences ( )
101
101
} catch {
102
- throw VPNServiceError . internalError ( " couldn't load tunnels: \( error) " )
102
+ throw . internalError( " couldn't load tunnels: \( error) " )
103
103
}
104
104
if tunnels. isEmpty {
105
- throw VPNServiceError . internalError ( " no tunnels found " )
105
+ throw . internalError( " no tunnels found " )
106
106
}
107
107
return tunnels. first!
108
108
}
You can’t perform that action at this time.
0 commit comments