fix: add error reason to connect
This commit is contained in:
parent
8ed5afe031
commit
a6adf26afb
|
@ -305,7 +305,7 @@ namespace TDengineDriver
|
|||
this.conn = TDengine.Connect(this.host, this.user, this.password, db, this.port);
|
||||
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);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue