Skip to content

Commit

Permalink
bugfix: replacing res.send with console.log
Browse files Browse the repository at this point in the history
res is not a variable in this callback
  • Loading branch information
chrisbolin committed Apr 9, 2015
1 parent 3f568f2 commit d37d02d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/defaultauth.js
Expand Up @@ -37,7 +37,7 @@ var compute = google.compute('v1');
// Get the appropriate type of credential client, depending upon the runtime environment.
google.auth.getApplicationDefault(function(err, authClient) {
if (err) {
res.send('Failed to get the default credentials: ' + String(err));
console.log('Failed to get the default credentials: ' + String(err));
return;
}
// The createScopedRequired method returns true when running on GAE or a local developer
Expand All @@ -54,4 +54,4 @@ google.auth.getApplicationDefault(function(err, authClient) {
compute.zones.list({ project: projectId, auth: authClient }, function(error, result) {
console.log(error, result);
});
});
});

0 comments on commit d37d02d

Please sign in to comment.