Skip to content

Commit

Permalink
Update SSHHandler.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
leefine02 authored Dec 20, 2021
1 parent ea41b72 commit 54e235f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PEMStoreSSH/RemoteHandlers/SSHHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public override string RunCommand(string commandText, object[] arguments, bool w
_logger.LogDebug($"RunCommand: {displayCommand}");
command.Execute();
_logger.LogDebug($"SSH Results: {displayCommand}::: {command.Result}::: {command.Error}");
return command.Result;
return string.IsNullOrEmpty(command.Result) && !string.IsNullOrEmpty(command.Error) ? command.Error : command.Result;
}
}
finally
Expand Down

0 comments on commit 54e235f

Please sign in to comment.