Fixed "out of memory" error for edge cases of resolveType() calls

This commit is contained in:
Vladimir Razuvaev 2017-05-29 22:54:35 +07:00
parent 154fdfee11
commit 6fb62b25b3

View File

@ -985,7 +985,7 @@ class Executor
if (!($runtimeType instanceof ObjectType)) { if (!($runtimeType instanceof ObjectType)) {
throw new Error( throw new Error(
"Abstract type {$returnType} must resolve to an Object type at runtime " . "Abstract type {$returnType} must resolve to an Object type at runtime " .
"for field {$info->parentType}.{$info->fieldName} with value \"" . print_r($result, true) . "\"," . "for field {$info->parentType}.{$info->fieldName} with value: " . Utils::printSafe($result) . "," .
"received \"$runtimeType\".", "received \"$runtimeType\".",
$fieldNodes $fieldNodes
); );