Commit ea37b56
fix(sqlite): preserve original exception across rollback failures
The createFulltextIndex / dropFulltextIndexById / createAttributes
catch blocks called rollbackTransaction() inline, which throws
DatabaseException("Failed to rollback transaction: ...") on failure
and replaces the actionable root cause. Wrap rollback so its own
error is swallowed and the original \$e is what propagates.1 parent 7cd345b commit ea37b56
1 file changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
794 | 794 | | |
795 | 795 | | |
796 | 796 | | |
797 | | - | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
798 | 804 | | |
799 | 805 | | |
800 | 806 | | |
| |||
941 | 947 | | |
942 | 948 | | |
943 | 949 | | |
944 | | - | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
945 | 954 | | |
946 | 955 | | |
947 | 956 | | |
| |||
2542 | 2551 | | |
2543 | 2552 | | |
2544 | 2553 | | |
2545 | | - | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
2546 | 2558 | | |
2547 | 2559 | | |
2548 | 2560 | | |
| |||
0 commit comments