conductor-node 3.8.2 → 3.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +1 -1
- package/dist/src/Client.js +5 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/src/Client.js
CHANGED
|
@@ -71,7 +71,11 @@ class Client {
|
|
|
71
71
|
console.log(JSON.stringify(error, undefined, 2));
|
|
72
72
|
}
|
|
73
73
|
if (error instanceof graphql_request_1.ClientError) {
|
|
74
|
-
const errorMessage = error.response.errors?.[0]?.message
|
|
74
|
+
const errorMessage = error.response.errors?.[0]?.message ??
|
|
75
|
+
// Though property `ClientError.response.error` does *not* exist,
|
|
76
|
+
// we've seen it occur (e.g., attempting to access `development`
|
|
77
|
+
// environment when `ngrok` is not running locally).
|
|
78
|
+
error.response["error"];
|
|
75
79
|
if (errorMessage !== undefined) {
|
|
76
80
|
throw new Error(errorMessage);
|
|
77
81
|
}
|