Skip to content

Commit

Permalink
fix: throw on invalid credentials (#281)
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 b2af9a9 commit 9ecacf8
Show file tree
Hide file tree
Showing 15 changed files with 61 additions and 5 deletions.
4 changes: 4 additions & 0 deletions packages/google-cloud-dialogflow/src/v2/agents_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ class AgentsClient {
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-dialogflow/src/v2/contexts_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ class ContextsClient {
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 @@ -273,6 +273,10 @@ class EntityTypesClient {
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-dialogflow/src/v2/intents_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ class IntentsClient {
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 @@ -166,6 +166,10 @@ class SessionEntityTypesClient {
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-dialogflow/src/v2/sessions_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ class SessionsClient {
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-dialogflow/src/v2beta1/agents_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ class AgentsClient {
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 @@ -178,6 +178,10 @@ class ContextsClient {
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 @@ -200,6 +200,10 @@ class DocumentsClient {
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 @@ -273,6 +273,10 @@ class EntityTypesClient {
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 @@ -233,6 +233,10 @@ class IntentsClient {
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 @@ -154,6 +154,10 @@ class KnowledgeBasesClient {
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 @@ -172,6 +172,10 @@ class SessionEntityTypesClient {
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 @@ -149,6 +149,10 @@ class SessionsClient {
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-dialogflow/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"updateTime": "2019-02-05T12:10:53.596160Z",
"updateTime": "2019-02-13T12:13:52.522765Z",
"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 9ecacf8

Please sign in to comment.