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() (backport #905) [release/4.10.x] #921

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Nov 15, 2024

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

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.


This is an automatic backport of pull request #905 done by Mergify.

* wip use BeSQLiteLib functions

* Use GetLogError

* use throwSqlResult and use GetLogError

* fix tab

* clean up and remove comment

---------

Co-authored-by: Daniel Rodriguez <DanRod1999@users.noreply.github.com>
Co-authored-by: affank <khanaffan@gmail.com>
Co-authored-by: Arun George <11051042+aruniverse@users.noreply.github.com>
(cherry picked from commit f0435be)
@DanRod1999
Copy link
Contributor

re running ci because this was running off of the wrong itwinjs core branch

@DanRod1999
Copy link
Contributor

/azp run imodel-native

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@aruniverse aruniverse merged commit 4dbb1de into release/4.10.x Nov 20, 2024
17 checks passed
@aruniverse aruniverse deleted the mergify/bp/release/4.10.x/pr-905 branch November 20, 2024 19:29
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