Skip to content

Commit

Permalink
changed type error message
Browse files Browse the repository at this point in the history
  • Loading branch information
OneCyrus committed Jan 14, 2019
1 parent 1adfa77 commit b747bb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utilities/buildClientSchema.js
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit b747bb4

Please sign in to comment.