Commit 319680d0 by IcedTangerine Committed by GitHub

Fix error message for invalid API key format

parent 4a6676cc
......@@ -107,7 +107,7 @@ var responseFormatToEncodingMap = map[string]string{
func parseVolcengineAuth(apiKey string) (appID, token string, err error) {
parts := strings.Split(apiKey, "|")
if len(parts) != 2 {
return "", "", errors.New("invalid api key format, expected: appid:access_token")
return "", "", errors.New("invalid api key format, expected: appid|access_token")
}
return parts[0], parts[1], nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment