mirror of https://github.com/milvus-io/milvus.git
[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>pull/20168/head
parent
bddd47c60f
commit
19baecdc4d
|
@ -76,11 +76,11 @@ func errProxyIsUnhealthy(id UniqueID) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func ErrMissingMetadata() 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 {
|
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 {
|
func ErrProxyNotReady() error {
|
||||||
|
|
Loading…
Reference in New Issue