Right now, if I run the following code on an unconfigured machine, I get a scary back-end error...
// (We're not running on App Engine or Compute Engine).
var gcloud = require('gcloud');
var dataset = gcloud.datastore.dataset(); // <-- Here is the issue (projectId === undefined)
dataset.get(datastore.key(['Person', 1], function(result) {
console.log(result);
});
Seems like if we can't auto-discover the project ID or credentials, we fail with a very long error.
Could we update things so that we raise a specific exception saying "You tried to make a request with a null project ID, meaning we couldn't figure out the project ID and you also didn't tell us the project ID..."