Skip to content
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

Improve Error Message for throwSqlError() #905

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

DanRod1999
Copy link
Contributor

@DanRod1999 DanRod1999 commented Oct 30, 2024

Resolves Issue
itwinjs-core: iTwin/itwinjs-core#7308

Currently the throwSqlError() function only gives "SQL Error", and only after enabling sql logs can we see a more useful error message. See issue for more details.

instead of using threSqlError() I used throwSqlResult() which when given a DBResult we can gather the error message from SQL. Also expand throwSqlResult() to provide the full sql log message.

@DanRod1999
Copy link
Contributor Author

/azp run imodel-native

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@DanRod1999
Copy link
Contributor Author

/azp run imodel-native

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

Improve the error message when inserting two of the same ElementGroupsMembers
3 participants