Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More informative debugging errors when credentials are not read properly #1

Open
kevinyu opened this issue Apr 1, 2021 · 0 comments

Comments

@kevinyu
Copy link
Contributor

kevinyu commented Apr 1, 2021

There seem to be several ways that things can go wrong and cause a cryptic error message of InvalidCredentialsError('Credentials file cannot be symbolic link') when reading the credentials file with g = GDriveCommands(PATH_TO_SETTINGS_YAML).

One example: if you rename the credential directory, you will need to modify settings.yaml > save_credentials_file path, and if you don't you will get the error that doesn't really describe the solution.

It would be better to catch these scenarios and give feedback to the user so they can fix the credential files or regenerate and not chase the error message that pops up that is irrelevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant