Skip to content

Commit d573121

Browse files
author
Dominique Loiseau
committed
Add more information in conversion error: lint
1 parent 3d005be commit d573121

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/execution/execute.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,9 @@ function completeValue(
851851
throw new Error(
852852
`Cannot return null for non-nullable field ${info.parentType.name}.${
853853
info.fieldName
854-
}. Value ${inspect(result)} cannot be converted to ${inspect(returnType)}`,
854+
}. Value ${inspect(result)} cannot be converted to ${inspect(
855+
returnType,
856+
)}`,
855857
);
856858
}
857859
return completed;

0 commit comments

Comments
 (0)