From a543fc403b367f54c4d150f52486c9701b0d4804 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Thu, 14 Feb 2019 08:23:27 -0800 Subject: [PATCH] fix: throw on invalid credentials (#326) --- src/v1/image_annotator_client.js | 4 ++++ src/v1/product_search_client.js | 4 ++++ src/v1p1beta1/image_annotator_client.js | 4 ++++ src/v1p2beta1/image_annotator_client.js | 4 ++++ src/v1p3beta1/image_annotator_client.js | 4 ++++ src/v1p3beta1/product_search_client.js | 4 ++++ synth.metadata | 10 +++++----- 7 files changed, 29 insertions(+), 5 deletions(-) diff --git a/src/v1/image_annotator_client.js b/src/v1/image_annotator_client.js index 7147be4e..00c2c3ee 100644 --- a/src/v1/image_annotator_client.js +++ b/src/v1/image_annotator_client.js @@ -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], diff --git a/src/v1/product_search_client.js b/src/v1/product_search_client.js index d44af7e4..c1426c98 100644 --- a/src/v1/product_search_client.js +++ b/src/v1/product_search_client.js @@ -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], diff --git a/src/v1p1beta1/image_annotator_client.js b/src/v1p1beta1/image_annotator_client.js index e0747121..a61c2104 100644 --- a/src/v1p1beta1/image_annotator_client.js +++ b/src/v1p1beta1/image_annotator_client.js @@ -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], diff --git a/src/v1p2beta1/image_annotator_client.js b/src/v1p2beta1/image_annotator_client.js index 2487c056..3faf8e0e 100644 --- a/src/v1p2beta1/image_annotator_client.js +++ b/src/v1p2beta1/image_annotator_client.js @@ -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], diff --git a/src/v1p3beta1/image_annotator_client.js b/src/v1p3beta1/image_annotator_client.js index 27fdc16c..12d529e0 100644 --- a/src/v1p3beta1/image_annotator_client.js +++ b/src/v1p3beta1/image_annotator_client.js @@ -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], diff --git a/src/v1p3beta1/product_search_client.js b/src/v1p3beta1/product_search_client.js index ff319a07..bfe0e87b 100644 --- a/src/v1p3beta1/product_search_client.js +++ b/src/v1p3beta1/product_search_client.js @@ -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], diff --git a/synth.metadata b/synth.metadata index 5c67c92c..d60def5e 100644 --- a/synth.metadata +++ b/synth.metadata @@ -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" } }, {