Skip to content

Commit

Permalink
SSH tunnel: process error pipe contents only if std pipe is empty. See
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarbecker committed Oct 27, 2022
1 parent 1756d46 commit 9b68360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/dbconnection.pas
Expand Up @@ -1185,9 +1185,9 @@ procedure TSecureShellCmd.Connect;
MessageDialog(DialogTitle, OutText, mtInformation, [mbOK]);
end;
end;
end;
end

if ErrorText <> '' then begin
else if ErrorText <> '' then begin
rx.Expression := '([^\.]+\?)(\s*\(y\/n\s*(,[^\)]+)?\)\s*)$';
if rx.Exec(ErrorText) then begin
// Prompt user with question
Expand Down

0 comments on commit 9b68360

Please sign in to comment.