syntaxError.mjs 365 B

123456789
  1. import { GraphQLError } from './GraphQLError';
  2. /**
  3. * Produces a GraphQLError representing a syntax error, containing useful
  4. * descriptive information about the syntax error's position in the source.
  5. */
  6. export function syntaxError(source, position, description) {
  7. return new GraphQLError("Syntax Error: ".concat(description), undefined, source, [position]);
  8. }