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

Obscure error when authenticated with an account that doesn't have permission on the Script project #79

Open
aurelienshz opened this issue Dec 15, 2017 · 0 comments

Comments

@aurelienshz
Copy link
Collaborator

When authenticated with an account that doesn't have write permission on the target script project, the output to npm run upload is the following :

Pushing back up to Google Drive...
Error parsing project files
Script file ID not found. Please input an ID and try again.
Upload failed.

This error message seems misleading, because the id of the project is correct! What's wrong is that I'm authenticated with the wrong account.

A potential "fix" (improvement) could be:

  • detecting if the problem has occured when reading the Script file ID, or when trying to push to Google Drive;
  • if the latter, change the message with something along the lines of "Could not push to the project whose Script file id was specified. Make sure the project exists, and that you have write permissions on it".

I might try to look into it later, but for now I'm leaving this issue for searchable reference if other people run into it.

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