From 9a2da25ba81bf64d368f09afe00aeb756e75394d Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Mon, 11 Apr 2022 20:00:28 +0800 Subject: [PATCH] fix(shell): print taos_connect failed reason befor exiting --- src/kit/shell/src/shellEngine.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kit/shell/src/shellEngine.c b/src/kit/shell/src/shellEngine.c index c54cd9fa75..1675473493 100644 --- a/src/kit/shell/src/shellEngine.c +++ b/src/kit/shell/src/shellEngine.c @@ -87,6 +87,7 @@ TAOS *shellInit(SShellArguments *_args) { } if (con == NULL) { + printf("\033[31mfailed to connect to db, reason:%s\033[0m\n", taos_errstr(con)); fflush(stdout); return con; } -- GitLab