Skip to content

Commit 6d3d53e

Browse files
yoshi-automationJustinBeckwith
authored andcommitted
fix: throw on invalid credentials (#302)
1 parent e4c2fe2 commit 6d3d53e

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

packages/google-cloud-node/src/v1/speech_client.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ class SpeechClient {
173173
function() {
174174
const args = Array.prototype.slice.call(arguments, 0);
175175
return stub[methodName].apply(stub, args);
176+
},
177+
err =>
178+
function() {
179+
throw err;
176180
}
177181
),
178182
defaults[methodName],

packages/google-cloud-node/src/v1p1beta1/speech_client.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ class SpeechClient {
173173
function() {
174174
const args = Array.prototype.slice.call(arguments, 0);
175175
return stub[methodName].apply(stub, args);
176+
},
177+
err =>
178+
function() {
179+
throw err;
176180
}
177181
),
178182
defaults[methodName],

packages/google-cloud-node/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-02-04T21:37:22.951258Z",
2+
"updateTime": "2019-02-13T12:26:23.514983Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.8",
8-
"dockerImage": "googleapis/artman@sha256:75bc07ef34a1de9895c18af54dc503ed3b3f3b52e85062e3360a979d2a0741e7"
7+
"version": "0.16.13",
8+
"dockerImage": "googleapis/artman@sha256:5fd9aee1d82a00cebf425c8fa431f5457539562f5867ad9c54370f0ec9a7ccaa"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "f26c727dde5051abefc5ad9e7dee82a2686ad2b0",
16-
"internalRef": "232306662"
15+
"sha": "ca61898878f0926dd9dcc68ba90764f17133efe4",
16+
"internalRef": "233680013"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)