From 3806c083850dbcc77558ea9e1df1a56230cb2626 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Thu, 14 Feb 2019 12:11:18 -0800 Subject: [PATCH] fix: throw on invalid credentials (#130) --- .../google-cloud-automl/src/v1beta1/auto_ml_client.js | 4 ++++ .../src/v1beta1/prediction_service_client.js | 4 ++++ packages/google-cloud-automl/synth.metadata | 10 +++++----- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/packages/google-cloud-automl/src/v1beta1/auto_ml_client.js b/packages/google-cloud-automl/src/v1beta1/auto_ml_client.js index 41a7eec2265..964d8f4ac0f 100644 --- a/packages/google-cloud-automl/src/v1beta1/auto_ml_client.js +++ b/packages/google-cloud-automl/src/v1beta1/auto_ml_client.js @@ -257,6 +257,10 @@ class AutoMlClient { function() { const args = Array.prototype.slice.call(arguments, 0); return stub[methodName].apply(stub, args); + }, + err => + function() { + throw err; } ), defaults[methodName], diff --git a/packages/google-cloud-automl/src/v1beta1/prediction_service_client.js b/packages/google-cloud-automl/src/v1beta1/prediction_service_client.js index be4a8afd64c..0bc61430ac6 100644 --- a/packages/google-cloud-automl/src/v1beta1/prediction_service_client.js +++ b/packages/google-cloud-automl/src/v1beta1/prediction_service_client.js @@ -135,6 +135,10 @@ class PredictionServiceClient { function() { const args = Array.prototype.slice.call(arguments, 0); return stub[methodName].apply(stub, args); + }, + err => + function() { + throw err; } ), defaults[methodName], diff --git a/packages/google-cloud-automl/synth.metadata b/packages/google-cloud-automl/synth.metadata index cb86d4fac24..90e8fa6c53a 100644 --- a/packages/google-cloud-automl/synth.metadata +++ b/packages/google-cloud-automl/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-02-05T12:07:49.252255Z", + "updateTime": "2019-02-13T12:08:34.895076Z", "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" } }, {