[4.2][Switchover/Failover]Optimize error code and error message

This commit is contained in:
obdev
2023-08-29 09:44:22 +00:00
committed by ob-robot
parent 220556e5be
commit 7678a4a676
4 changed files with 63 additions and 8 deletions

View File

@ -41,6 +41,7 @@ namespace share
LOG_USER_ERROR(OB_INVALID_ARGUMENT, "get primary " args ", privilege is insufficient"); \
break; \
case -ER_ACCESS_DENIED_ERROR: \
case OB_PASSWORD_WRONG: \
LOG_USER_ERROR(OB_INVALID_ARGUMENT, "get primary " args ", please check the user and password"); \
break; \
case -ER_DBACCESS_DENIED_ERROR: \
@ -64,6 +65,9 @@ namespace share
case -ER_CONNECT_FAILED: \
LOG_USER_ERROR(OB_INVALID_ARGUMENT, "get primary " args ", please check the network"); \
break; \
case OB_ERR_TENANT_IS_LOCKED: \
LOG_USER_ERROR(OB_INVALID_ARGUMENT, "get primary " args ", primary tenant is locked"); \
break; \
default: \
LOG_USER_ERROR(OB_INVALID_ARGUMENT, "get primary " args); \
} \