File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -856,14 +856,18 @@ export class Swiftly {
856856                `Swift ${ version }  
857857            ) ; 
858858        }  catch  ( error )  { 
859-             const  errorMsg  =  `Failed to execute post-install script: ${ error }  ; 
860-             logger ?. error ( errorMsg ) ; 
861-             outputChannel . appendLine ( "" ) ; 
862-             outputChannel . appendLine ( `Error: ${ errorMsg }  ) ; 
863- 
864-             void  vscode . window . showErrorMessage ( 
865-                 `Failed to execute post-install script for Swift ${ version }  
866-             ) ; 
859+             logger ?. error ( Error ( "Failed to execute post-install script" ,  {  cause : error  } ) ) ; 
860+             void  vscode . window 
861+                 . showErrorMessage ( 
862+                     `Failed to execute post-install script for Swift ${ version }  , 
863+                     "Show Command Output" 
864+                 ) 
865+                 . then ( selected  =>  { 
866+                     if  ( ! selected )  { 
867+                         return ; 
868+                     } 
869+                     outputChannel . show ( ) ; 
870+                 } ) ; 
867871        } 
868872    } 
869873
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments