Commit 6992d83
authored
fix(composer): include transaction processing errors in debug logging (#6)
Move `addSwapTransactions()` call inside the try/catch block in
`execute()` so that errors during transaction processing (such as
"Failed to process swap transaction at index X") are logged with
comprehensive failure context via `logSwapExecutionFailure()` before
being re-thrown to the developer's code.
Previously, only errors from `atc.execute()` received debug logging,
making it harder to diagnose intermittent transaction processing issues.1 parent e14404e commit 6992d83
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| |||
0 commit comments