diff --git a/src/utilities/buildClientSchema.js b/src/utilities/buildClientSchema.js index 531036dca3..ecea2bfe1a 100644 --- a/src/utilities/buildClientSchema.js +++ b/src/utilities/buildClientSchema.js @@ -143,7 +143,7 @@ export function buildClientSchema( const type = getType(typeRef); invariant( isInputType(type), - 'Introspection must provide input type for arguments.', + 'Introspection must provide input type for arguments, but received: ' + inspect(type), ); return type; } @@ -154,7 +154,7 @@ export function buildClientSchema( const type = getType(typeRef); invariant( isOutputType(type), - 'Introspection must provide output type for fields.', + 'Introspection must provide output type for fields, but received: ' + inspect(type), ); return type; }