lib/JSON-parser.js
function makeError(e) {
    return {
      fatal: true,
      severity: 2,
      message: (e.message || '').split('\n', 1)[0],
      line: parser.line,
      column: parser.column
    };
  }
function makeError(e) {
    return {
      fatal: true,
      severity: 2,
      message: (e.message || '').split('\n', 1)[0],
      line: parser.line,
      column: parser.column
    };
  }
function makeError ( e ) { return { fatal : true , severity : 2 , message : ( e . message || '' ) . split ( '\n' , 1 ) [ 0 ] , line : parser . line , column : parser . column } ; }
generate a detailed error using the parser's state
generate a detailed error using the parser s state