Skip to content

Commit 79f043e

Browse files
committed
Fixed error code not being parsed correctly.
1 parent ce7f974 commit 79f043e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/transporters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ DefaultTransporter.prototype.wrapCallback_ = function(opt_callback) {
8282
err = new Error(body.error.errors.map(
8383
function(err) { return err.message; }
8484
).join('\n'));
85-
err.code = body.error.errors[0].code;
85+
err.code = body.error.code;
8686
err.errors = body.error.errors;
8787

8888
} else {

0 commit comments

Comments
 (0)