-
Notifications
You must be signed in to change notification settings - Fork 595
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
Incorrect missing project ID error URL #1405
Conversation
The URL in the error message does not actually take you to the authentication documentation. Fixed in the fork.
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
I signed it. On Fri, Jul 1, 2016 at 2:28 PM googlebot [email protected] wrote:
|
CLAs look good, thanks! |
Thank you for finding this. This is kinda silly, but we have an 80 char rule, so if you don't mind, can you make these changes? var extend = require('extend');
+ var format = require('string-format-obj');
var googleAuth = require('google-auto-auth');
...
var errorMessage = format([
'Sorry, we cannot connect to Google Cloud Services without a project ID.',
'You may specify one with an environment variable named "GCLOUD_PROJECT".',
'See {baseUrl}/{path} for a detailed guide on creating an authenticated',
'connection.'
].join(' '), {
baseUrl: 'https://googlecloudplatform.github.io/gcloud-node/#',
path: '/docs/guides/authentication'
});
var missingProjectIdError = new Error(errorMessage); |
Thanks for the code, Stephen. I was wondering how I was going to make that work. :)
Thanks, @stephenplusplus. I was wondering how I was going to make that URL fit. :) |
Awesome, thanks :) And sorry again, but I forgot that we have this test this is going to fail now. That will need the same update. I'm pretty confident that should be it! |
Fix test to match new URL
Perfect, thank you very much! 💃 |
See https://googlecloudplatform.github.io/google-cloud-node/#//docs/guides/authentication opens https://googlecloudplatform.github.io/google-cloud-node/#/ and not the auth docs removing the extra `/` properly routes to https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/0.45.0/guides/authentication Relates to googleapis#1405
See https://googlecloudplatform.github.io/google-cloud-node/#//docs/guides/authentication opens https://googlecloudplatform.github.io/google-cloud-node/#/ and not the auth docs removing the extra `/` properly routes to https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/0.45.0/guides/authentication Relates to #1405
The URL in the error message does not actually take you to the authentication documentation. Fixed in the fork.