Skip to content

Commit b747bb4

Browse files
committed
changed type error message
1 parent 1adfa77 commit b747bb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utilities/buildClientSchema.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export function buildClientSchema(
143143
const type = getType(typeRef);
144144
invariant(
145145
isInputType(type),
146-
'Introspection must provide input type for arguments. ' + inspect(type),
146+
'Introspection must provide input type for arguments, but received: ' + inspect(type),
147147
);
148148
return type;
149149
}
@@ -154,7 +154,7 @@ export function buildClientSchema(
154154
const type = getType(typeRef);
155155
invariant(
156156
isOutputType(type),
157-
'Introspection must provide output type for fields. ' + inspect(type),
157+
'Introspection must provide output type for fields, but received: ' + inspect(type),
158158
);
159159
return type;
160160
}

0 commit comments

Comments
 (0)