From b747bb4d9e84c546532b61725a3aa6220ee9c263 Mon Sep 17 00:00:00 2001 From: Daniel Gut Date: Mon, 14 Jan 2019 21:45:04 +0100 Subject: [PATCH] changed type error message --- src/utilities/buildClientSchema.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utilities/buildClientSchema.js b/src/utilities/buildClientSchema.js index 666a5d49d6..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. ' + inspect(type), + '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. ' + inspect(type), + 'Introspection must provide output type for fields, but received: ' + inspect(type), ); return type; }