-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
SqliteError {} does not show message #2755
Comments
I think I found the reason: https://github.com/JoshuaWise/better-sqlite3/blob/03f382a3ba1977feeb57ff1349c628b846d8b8b3/lib/sqlite-error.js#L2 ( Is there a chance we can always look for a |
I agreed it'd be useful to print the message. I'm not immediately sure why it isn't being printed. |
@novemberborn its not printing the message because it makes the |
@andykais gotcha. This isn't readily fixable in AVA, I've added concordancejs/concordance#77 on the dependency that formats the errors. |
Please provide details about:
repro:
install the npm package
better-sqlite3
run
npx ava test.js
with zero ava configurationthis is the output:
contrast that with the following code sample:
we correctly see the error message:
this is odd because if I catch the SqliteError, I can call
error.message
and see that there is a string there. I am unsure why it is not being displayed by ava.ava version:
3.15.0
The text was updated successfully, but these errors were encountered: