mirror of
https://github.com/HackPlan/google-auth-library-nodejs.git
synced 2026-01-12 22:44:19 +08:00
Fixed error code not being parsed correctly.
This commit is contained in:
@@ -82,7 +82,7 @@ DefaultTransporter.prototype.wrapCallback_ = function(opt_callback) {
|
||||
err = new Error(body.error.errors.map(
|
||||
function(err) { return err.message; }
|
||||
).join('\n'));
|
||||
err.code = body.error.errors[0].code;
|
||||
err.code = body.error.code;
|
||||
err.errors = body.error.errors;
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user