From f94a46b41115fe34b8fcfd830669ae84c2ee8cc0 Mon Sep 17 00:00:00 2001 From: Roman Khlopkov <roman.khlopkov@demlabs.net> Date: Thu, 29 Oct 2020 14:22:11 +0000 Subject: [PATCH] bugs 4612 --- CMakeLists.txt | 2 +- cellframe-sdk | 2 +- prod_build | 2 +- sources/main_node_cli.c | 15 +++++++++++++++ 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 834f0fe49..f871dbd77 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_C_STANDARD 11) SET( CPACK_PACKAGE_NAME "${PROJECT_NAME}") SET( CPACK_PACKAGE_VERSION_MAJOR 4) SET( CPACK_PACKAGE_VERSION_MINOR 1) -SET( CPACK_PACKAGE_VERSION_PATCH 24) +SET( CPACK_PACKAGE_VERSION_PATCH 25) # init CellFrame SDK add_definitions("-DDAP_VERSION=\"${CPACK_PACKAGE_VERSION_MAJOR}-${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}\"") diff --git a/cellframe-sdk b/cellframe-sdk index f0ad7c5f6..3f30ebe8c 160000 --- a/cellframe-sdk +++ b/cellframe-sdk @@ -1 +1 @@ -Subproject commit f0ad7c5f6fba5369b976cf8e13b77bea09f037f3 +Subproject commit 3f30ebe8cc5b22b2c8f8ec294e4dbcdbd2b01645 diff --git a/prod_build b/prod_build index 85c90bee9..87709ff3a 160000 --- a/prod_build +++ b/prod_build @@ -1 +1 @@ -Subproject commit 85c90bee9afbde616c12b5cbf59a5007e2cb0e42 +Subproject commit 87709ff3aecc5bccdc6e5a4961b8adeb80e10b8c diff --git a/sources/main_node_cli.c b/sources/main_node_cli.c index f07054d1d..be9e324ff 100644 --- a/sources/main_node_cli.c +++ b/sources/main_node_cli.c @@ -266,6 +266,21 @@ int main(int argc, const char *argv[]) #ifdef _WIN32 WSACleanup(); #endif + switch (res) { + case DAP_CLI_ERROR_FORMAT: + printf("Response format error!\n"); + break; + case DAP_CLI_ERROR_SOCKET: + printf("Socket read error!\n"); + break; + case DAP_CLI_ERROR_TIMEOUT: + printf("No response recieved.\n"); + break; + case DAP_CLI_ERROR_INCOMPLETE: + printf("Connection closed by peer"); + default: + break; + } return res; }else{ // command not found, start interactive shell -- GitLab