-
Notifications
You must be signed in to change notification settings - Fork 275
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
PostgresError prints as {} with node --test #696
Comments
This comment was marked as outdated.
This comment was marked as outdated.
I found the issue. It is caused by the This hack fixes the issues: function queryError(query, err) {
query.reject(err)
// query.reject(Object.create(err, {
// stack: { value: err.stack + query.origin.replace(/.*\n/, '\n'), enumerable: options.debug },
// query: { value: query.string, enumerable: options.debug },
// parameters: { value: query.parameters, enumerable: options.debug },
// args: { value: query.args, enumerable: options.debug },
// types: { value: query.statement && query.statement.types, enumerable: options.debug }
// }))
} |
Pyrolistical
added a commit
to Pyrolistical/postgres
that referenced
this issue
Oct 16, 2023
porsager
pushed a commit
that referenced
this issue
Oct 26, 2023
* Keep query error instead of creating creating new object fixes #696 * Enumerate properties only if debug * Fixed typo * Fixed styling
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Env:
Given
repo.js
Run
node --test repo.js
Expected
Actual
The text was updated successfully, but these errors were encountered: