From 19baecdc4d645ee277e9d7e3f989df9cd1aa65c5 Mon Sep 17 00:00:00 2001
From: jaime <yun.zhang@zilliz.com>
Date: Fri, 28 Oct 2022 19:25:34 +0800
Subject: [PATCH] [skip e2e]Refine error msg for authentication checking
 (#20117)

Signed-off-by: yun.zhang <yun.zhang@zilliz.com>

Signed-off-by: yun.zhang <yun.zhang@zilliz.com>
---
 internal/proxy/error.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/internal/proxy/error.go b/internal/proxy/error.go
index 039218bc7c..4528cc3be6 100644
--- a/internal/proxy/error.go
+++ b/internal/proxy/error.go
@@ -76,11 +76,11 @@ func errProxyIsUnhealthy(id UniqueID) error {
 }
 
 func ErrMissingMetadata() error {
-	return fmt.Errorf("invalid argument: missing metadata")
+	return fmt.Errorf("auth check failure, due to occurs inner error: missing metadata")
 }
 
 func ErrUnauthenticated() error {
-	return fmt.Errorf("unauthenticated: invalid credential")
+	return fmt.Errorf("auth check failure, please check username and password are correct")
 }
 
 func ErrProxyNotReady() error {