File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -611,7 +611,7 @@ pub enum TunnelSubcommand {
611
611
/// Restarts any running tunnel on the system.
612
612
Restart ,
613
613
614
- /// Gets whether there is a tunnel running on the current machineiou .
614
+ /// Gets whether there is a tunnel running on the current machine .
615
615
Status ,
616
616
617
617
/// Rename the name of this machine associated with port forwarding service.
Original file line number Diff line number Diff line change @@ -471,9 +471,17 @@ impl DevTunnels {
471
471
continue ;
472
472
}
473
473
474
+ if let Some ( d) = e. get_details ( ) {
475
+ let detail = d. detail . unwrap_or_else ( || "unknown" . to_string ( ) ) ;
476
+ return Err ( AnyError :: from ( TunnelCreationFailed (
477
+ name. to_string ( ) ,
478
+ detail,
479
+ ) ) ) ;
480
+ }
481
+
474
482
return Err ( AnyError :: from ( TunnelCreationFailed (
475
483
name. to_string ( ) ,
476
- "You've exceeded the 10 machine limit for the port fowarding service. Please remove other machines before trying to add this machine." . to_string ( ) ,
484
+ "You have exceeded a limit for the port fowarding service. Please remove other machines before trying to add this machine." . to_string ( ) ,
477
485
) ) ) ;
478
486
}
479
487
Err ( e) => {
You can’t perform that action at this time.
0 commit comments