function formatError(error) {
  !error ? (0, _invariant2.default)(0, 'Received null or undefined error.') : void 0;
  return {
    message: error.message,
    locations: error.locations,
    path: error.path
  };
} /**
   * Copyright (c) 2015-present, Facebook, Inc.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   *
   * 
   */
/**
 * Given a GraphQLError, format it according to the rules described by the
 * Response Format, Errors section of the GraphQL Specification.
 */
Given a GraphQLError, format it according to the rules described by the
Response Format, Errors section of the GraphQL Specification.
Given a GraphQLError format it according to the rules described by the Response Format Errors section of the GraphQL Specification .
function formatError(error) {
  !error ? (0, _invariant2.default)(0, 'Received null or undefined error.') : void 0;
  return {
    message: error.message,
    locations: error.locations,
    path: error.path
  };
} 
function formatError ( error ) { ! error ? ( 0 , _invariant2 . default ) ( 0 , 'Received null or undefined error.' ) : void 0 ; return { message : error . message , locations : error . locations , path : error . path } ; }
Given a GraphQLError, format it according to the rules described by the
 Response Format, Errors section of the GraphQL Specification.
Given a GraphQLError format it according to the rules described by the Response Format Errors section of the GraphQL Specification .
/**
   * Copyright (c) 2015-present, Facebook, Inc.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   *
   * 
   */