conductor-node 3.8.1 → 3.8.2
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 +4 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/src/Client.js
CHANGED
|
@@ -71,7 +71,10 @@ class Client {
|
|
|
71
71
|
console.log(JSON.stringify(error, undefined, 2));
|
|
72
72
|
}
|
|
73
73
|
if (error instanceof graphql_request_1.ClientError) {
|
|
74
|
-
|
|
74
|
+
const errorMessage = error.response.errors?.[0]?.message;
|
|
75
|
+
if (errorMessage !== undefined) {
|
|
76
|
+
throw new Error(errorMessage);
|
|
77
|
+
}
|
|
75
78
|
}
|
|
76
79
|
throw error;
|
|
77
80
|
}
|