Skip to content

Conversation

@kennethtiller
Copy link
Contributor

This PR adds query to InsufficientParametersException, to include the SQL in the exception message.

This makes it easier to find what code has failed with insufficient parameters by searching for the query in client codebase.

It can be hard to find the code because the asynchronous nature of the library does not include stacktrace to call site.

@kennethtiller kennethtiller changed the title Added query to InsufiicientParametersException Add query to InsufiicientParametersException Nov 3, 2023
@oshai
Copy link
Contributor

oshai commented Nov 8, 2023

Thanks for the PR! can you please add a test for it?

@kennethtiller
Copy link
Contributor Author

Thanks for the PR! can you please add a test for it?

Thanks for asking! I found it to be a natural fit for the existing tests, have a look and let me know if you'd like it another way

@oshai
Copy link
Contributor

oshai commented Nov 8, 2023

lgtm

@kennethtiller kennethtiller changed the title Add query to InsufiicientParametersException Add query to InsufficientParametersException Nov 8, 2023
@oshai oshai merged commit 83029e5 into jasync-sql:master Nov 8, 2023
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

Successfully merging this pull request may close these issues.

2 participants