diff --git a/internal/keychain/keychain.go b/internal/keychain/keychain.go index 187184593..e2cdecc11 100644 --- a/internal/keychain/keychain.go +++ b/internal/keychain/keychain.go @@ -36,10 +36,10 @@ func wrapError(op string, err error) error { } msg := fmt.Sprintf("keychain %s failed: %v", op, err) - hint := "Check if the OS keychain/credential manager is locked or accessible. If running inside a sandbox or CI environment, please ensure the process has the necessary permissions to access the keychain." + hint := "Check if the OS keychain/credential manager is locked or accessible. If running inside a sandbox or CI environment, please ensure the process has the necessary permissions to access the keychain, you can try running this outside the sandbox." if errors.Is(err, errNotInitialized) { - hint = "The keychain master key may have been cleaned up or deleted. Please reconfigure the CLI by running `lark-cli config init`." + hint = "The keychain master key may have been cleaned up or deleted. If running inside a sandbox or CI environment, please ensure the process has the necessary permissions to access the keychain, you can try running this outside the sandbox. Otherwise, please reconfigure the CLI by running lark-cli config init." } func() {