Skip to content

Commit

Permalink
fix: throw on invalid credentials (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Feb 14, 2019
1 parent 0ff1a44 commit f7bfbc0
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 5 deletions.
4 changes: 4 additions & 0 deletions packages/google-cloud-vision/src/v1/image_annotator_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ class ImageAnnotatorClient {
function() {
const args = Array.prototype.slice.call(arguments, 0);
return stub[methodName].apply(stub, args);
},
err =>
function() {
throw err;
}
),
defaults[methodName],
Expand Down
4 changes: 4 additions & 0 deletions packages/google-cloud-vision/src/v1/product_search_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ class ProductSearchClient {
function() {
const args = Array.prototype.slice.call(arguments, 0);
return stub[methodName].apply(stub, args);
},
err =>
function() {
throw err;
}
),
defaults[methodName],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ class ImageAnnotatorClient {
function() {
const args = Array.prototype.slice.call(arguments, 0);
return stub[methodName].apply(stub, args);
},
err =>
function() {
throw err;
}
),
defaults[methodName],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ class ImageAnnotatorClient {
function() {
const args = Array.prototype.slice.call(arguments, 0);
return stub[methodName].apply(stub, args);
},
err =>
function() {
throw err;
}
),
defaults[methodName],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ class ImageAnnotatorClient {
function() {
const args = Array.prototype.slice.call(arguments, 0);
return stub[methodName].apply(stub, args);
},
err =>
function() {
throw err;
}
),
defaults[methodName],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ class ProductSearchClient {
function() {
const args = Array.prototype.slice.call(arguments, 0);
return stub[methodName].apply(stub, args);
},
err =>
function() {
throw err;
}
),
defaults[methodName],
Expand Down
10 changes: 5 additions & 5 deletions packages/google-cloud-vision/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"updateTime": "2019-02-05T12:22:47.592968Z",
"updateTime": "2019-02-13T12:30:53.767861Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.16.9",
"dockerImage": "googleapis/artman@sha256:80c39fa84e7203c8f355e01bdeef82155013cc39dcaa48fba7a6fe2c253623e3"
"version": "0.16.13",
"dockerImage": "googleapis/artman@sha256:5fd9aee1d82a00cebf425c8fa431f5457539562f5867ad9c54370f0ec9a7ccaa"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "f26c727dde5051abefc5ad9e7dee82a2686ad2b0",
"internalRef": "232306662"
"sha": "ca61898878f0926dd9dcc68ba90764f17133efe4",
"internalRef": "233680013"
}
},
{
Expand Down

0 comments on commit f7bfbc0

Please sign in to comment.