File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ enum LoginError: Error {
201
201
case . invalidURL:
202
202
" Invalid URL "
203
203
case let . failedAuth( err) :
204
- " Could not authenticate with Coder deployment: \n \( err. description ) "
204
+ " Could not authenticate with Coder deployment: \n \( err. localizedDescription ) "
205
205
}
206
206
}
207
207
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ public enum ClientError: Error {
131
131
case let . unexpectedResponse( data) :
132
132
" Unexpected or non HTTP response: \( data) "
133
133
case let . encodeFailure( error) :
134
- " Failed to encode body: \( error) "
134
+ " Failed to encode body: \( error. localizedDescription ) "
135
135
}
136
136
}
137
137
Original file line number Diff line number Diff line change @@ -251,17 +251,17 @@ enum ManagerError: Error {
251
251
var description : String {
252
252
switch self {
253
253
case let . download( err) :
254
- " Download error: \( err) "
254
+ " Download error: \( err. localizedDescription ) "
255
255
case let . tunnelSetup( err) :
256
- " Tunnel setup error: \( err) "
256
+ " Tunnel setup error: \( err. localizedDescription ) "
257
257
case let . handshake( err) :
258
- " Handshake error: \( err) "
258
+ " Handshake error: \( err. localizedDescription ) "
259
259
case let . validation( err) :
260
- " Validation error: \( err) "
260
+ " Validation error: \( err. localizedDescription ) "
261
261
case . incorrectResponse:
262
262
" Received unexpected response over tunnel "
263
263
case let . failedRPC( err) :
264
- " Failed rpc: \( err) "
264
+ " Failed rpc: \( err. localizedDescription ) "
265
265
case let . serverInfo( msg) :
266
266
msg
267
267
case let . errorResponse( msg) :
@@ -273,7 +273,7 @@ enum ManagerError: Error {
273
273
case . permissionDenied:
274
274
" Permission was not granted to execute the CoderVPN dylib "
275
275
case let . tunnelFail( err) :
276
- " Failed to communicate with dylib over tunnel: \( err) "
276
+ " Failed to communicate with dylib over tunnel: \( err. localizedDescription ) "
277
277
}
278
278
}
279
279
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ enum TunnelHandleError: Error {
75
75
76
76
var description : String {
77
77
switch self {
78
- case let . pipe( err) : " pipe error: \( err) "
78
+ case let . pipe( err) : " pipe error: \( err. localizedDescription ) "
79
79
case let . dylib( d) : d
80
80
case let . symbol( symbol, message) : " \( symbol) : \( message) "
81
81
case let . openTunnel( error) : " OpenTunnel: \( error. message) "
You can’t perform that action at this time.
0 commit comments