fix: add error reason to connect

This commit is contained in:
Shuduo Sang 2023-07-10 16:58:14 +08:00
parent 8ed5afe031
commit a6adf26afb
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ namespace TDengineDriver
this.conn = TDengine.Connect(this.host, this.user, this.password, db, this.port); this.conn = TDengine.Connect(this.host, this.user, this.password, db, this.port);
if (this.conn == IntPtr.Zero) if (this.conn == IntPtr.Zero)
{ {
Console.WriteLine("Connect to TDengine failed"); Console.WriteLine("Connect to TDengine failed. Reason: {0}\n", TDengine.Error(0));
CleanAndExitProgram(1); CleanAndExitProgram(1);
} }
else else