diff --git a/dbms/programs/client/TestHint.h b/dbms/programs/client/TestHint.h index b260bead0ba..81937435b2e 100644 --- a/dbms/programs/client/TestHint.h +++ b/dbms/programs/client/TestHint.h @@ -13,7 +13,7 @@ namespace DB namespace ErrorCodes { - extern const int LOGICAL_ERROR; + extern const int UNEXPECTED_ERROR_CODE; } @@ -74,7 +74,7 @@ public: std::cerr << "Success when error expected. It expects server error " << server_error << ", client error " << client_error << "." << std::endl; got_exception = true; - last_exception = std::make_unique("Success when error expected", ErrorCodes::LOGICAL_ERROR); /// return error to OS + last_exception = std::make_unique("Success when error expected", ErrorCodes::UNEXPECTED_ERROR_CODE); /// return error to OS return false; } diff --git a/dbms/src/Common/ErrorCodes.cpp b/dbms/src/Common/ErrorCodes.cpp index f20c7920a12..c84d5c6c74a 100644 --- a/dbms/src/Common/ErrorCodes.cpp +++ b/dbms/src/Common/ErrorCodes.cpp @@ -476,6 +476,7 @@ namespace ErrorCodes extern const int CANNOT_CREATE_DATABASE = 501; extern const int CANNOT_SIGQUEUE = 502; extern const int AGGREGATE_FUNCTION_THROW = 503; + extern const int UNEXPECTED_ERROR_CODE = 504; extern const int KEEPER_EXCEPTION = 999; extern const int POCO_EXCEPTION = 1000;