File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
src/PowerShellEditorServices/Services/Workspace Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -392,16 +392,16 @@ public async Task SaveRemoteFileAsync(string localFilePath)
392
392
. AddParameter ( "RemoteFilePath" , remoteFilePath )
393
393
. AddParameter ( "Content" , localFileContents ) ;
394
394
395
- await _executionService . ExecutePSCommandAsync < object > (
396
- saveCommand ,
397
- CancellationToken . None ) . ConfigureAwait ( false ) ;
398
-
399
- /*
400
- if (errorMessages.Length > 0)
395
+ try
396
+ {
397
+ await _executionService . ExecutePSCommandAsync < object > (
398
+ saveCommand ,
399
+ CancellationToken . None ) . ConfigureAwait ( false ) ;
400
+ }
401
+ catch ( Exception e )
401
402
{
402
- this.logger.LogError($ "Remote file save failed due to an error:\r\n\r\n{errorMessages} ");
403
+ this . logger . LogError ( e , "Remote file save failed" ) ;
403
404
}
404
- */
405
405
}
406
406
407
407
/// <summary>
You can’t perform that action at this time.
0 commit comments