Skip to content

error message doesn't say which and line error is generated from #1773

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Rc85 opened this issue Nov 18, 2018 · 1 comment
Closed

error message doesn't say which and line error is generated from #1773

Rc85 opened this issue Nov 18, 2018 · 1 comment

Comments

@Rc85
Copy link

Rc85 commented Nov 18, 2018

A typical error in node-postgres is something like this

{ error: syntax error at or near "WHER"
    at Connection.parseE (H:\...\...\node_modules\pg\lib\connection.js:553:11)
    at Connection.parseMessage (H:\...\...\node_modules\pg\lib\connection.js:378:19)
    at Socket.<anonymous> (H:\...\...\node_modules\pg\lib\connection.js:119:22)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onread (net.js:638:20)
  name: 'error',
  length: 93,
  severity: 'ERROR',
  code: '42601',
  detail: undefined,
  hint: undefined,
  position: '57',
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  schema: undefined,
  table: undefined,
  column: undefined,
  dataType: undefined,
  constraint: undefined,
  file: 'scan.l',
  line: '1087',
  routine: 'scanner_yyerror' }

Is it not possible to identify the file and line number the error is generated from?

@charmander
Copy link
Collaborator

Duplicate of #1762

@charmander charmander marked this as a duplicate of #1762 Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants