From dacc1d7c99f14be53e3f88d2901a093fcfd29f71 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Thu, 28 Mar 2019 20:04:59 +0100 Subject: [PATCH] Issue #577: skip informational error output from new plink version --- source/dbconnection.pas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index f6f41f57..e298f65b 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -966,6 +966,10 @@ begin raise EDatabaseError.Create(_('PLink cancelled')); end; end; + end else if ErrorText.StartsWith('Using username ', True) then begin + // See #577 - new plink version sends this informational text to error pipe + FConnection.Log(lcError, 'PLink: '+ErrorText); + SendText(CRLF); end else begin MessageDialog('PLink:', ErrorText, mtError, [mbOK]); end;