Skip to content

Commit 60ea4e3

Browse files
YOUR_NAMEYOUR_NAME
authored andcommitted
error fix
1 parent afe1867 commit 60ea4e3

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

examples/typescript-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typescript-node",
3-
"version": "3.1.8",
3+
"version": "3.1.9",
44
"description": "",
55
"private": true,
66
"main": "index.js",

packages/graphql-zeus-core/TreeToTS/functions/generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ export interface GraphQLResponse {
468468
}
469469
export class GraphQLError extends Error {
470470
constructor(public response: GraphQLResponse) {
471-
super('');
471+
super(response.errors?.[0]?.message || 'GraphQL Response Error');
472472
console.error(response);
473473
}
474474
toString() {

packages/graphql-zeus-core/TreeToTS/functions/new/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export interface GraphQLResponse {
7373
}
7474
export class GraphQLError extends Error {
7575
constructor(public response: GraphQLResponse) {
76-
super('');
76+
super(response.errors?.[0]?.message || 'GraphQL Response Error');
7777
console.error(response);
7878
}
7979
toString() {

packages/graphql-zeus-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-zeus-core",
3-
"version": "7.1.9",
3+
"version": "7.1.10",
44
"private": false,
55
"main": "./lib/index.js",
66
"author": "GraphQL Editor, Artur Czemiel",

packages/graphql-zeus-jsonschema/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-zeus-jsonschema",
3-
"version": "7.1.9",
3+
"version": "7.1.10",
44
"private": false,
55
"main": "./lib/index.js",
66
"author": "GraphQL Editor, Artur Czemiel",

packages/graphql-zeus/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-zeus",
3-
"version": "7.1.9",
3+
"version": "7.1.10",
44
"private": false,
55
"scripts": {
66
"start": "ttsc --watch",
@@ -31,8 +31,8 @@
3131
"config-maker": "^0.0.6",
3232
"cross-fetch": "^3.0.4",
3333
"graphql-js-tree": "^3.0.4",
34-
"graphql-zeus-core": "^7.1.9",
35-
"graphql-zeus-jsonschema": "^7.1.9",
34+
"graphql-zeus-core": "^7.1.10",
35+
"graphql-zeus-jsonschema": "^7.1.10",
3636
"prompts": "^2.4.2",
3737
"yargs": "^16.1.1"
3838
}

0 commit comments

Comments
 (0)