Skip to content

Commit e770252

Browse files
yoshi-automationJustinBeckwith
authored andcommitted
fix: throw on invalid credentials (#522)
1 parent 286c67b commit e770252

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

src/v1/database_admin_client.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ class DatabaseAdminClient {
209209
function() {
210210
const args = Array.prototype.slice.call(arguments, 0);
211211
return stub[methodName].apply(stub, args);
212+
},
213+
err =>
214+
function() {
215+
throw err;
212216
}
213217
),
214218
defaults[methodName],

src/v1/instance_admin_client.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ class InstanceAdminClient {
232232
function() {
233233
const args = Array.prototype.slice.call(arguments, 0);
234234
return stub[methodName].apply(stub, args);
235+
},
236+
err =>
237+
function() {
238+
throw err;
235239
}
236240
),
237241
defaults[methodName],

src/v1/spanner_client.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ class SpannerClient {
175175
function() {
176176
const args = Array.prototype.slice.call(arguments, 0);
177177
return stub[methodName].apply(stub, args);
178+
},
179+
err =>
180+
function() {
181+
throw err;
178182
}
179183
),
180184
defaults[methodName],

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-05T12:19:30.273042Z",
2+
"updateTime": "2019-02-13T12:25:28.245272Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.9",
8-
"dockerImage": "googleapis/artman@sha256:80c39fa84e7203c8f355e01bdeef82155013cc39dcaa48fba7a6fe2c253623e3"
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)