diff --git a/CMakeLists.txt b/CMakeLists.txt index 834f0fe492fd2c602eea4c4e8d6d82b9bab70bb5..f871dbd7740d9ead897761c70395cfcce2ffed70 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 f0ad7c5f6fba5369b976cf8e13b77bea09f037f3..3f30ebe8cc5b22b2c8f8ec294e4dbcdbd2b01645 160000 --- a/cellframe-sdk +++ b/cellframe-sdk @@ -1 +1 @@ -Subproject commit f0ad7c5f6fba5369b976cf8e13b77bea09f037f3 +Subproject commit 3f30ebe8cc5b22b2c8f8ec294e4dbcdbd2b01645 diff --git a/prod_build b/prod_build index 85c90bee9afbde616c12b5cbf59a5007e2cb0e42..87709ff3aecc5bccdc6e5a4961b8adeb80e10b8c 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 f07054d1d93dbbb773d10b9fb7862b84a86626a5..be9e324ffa485e0f14bf1b3322dd53609e518a3b 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