Closed mattverse closed 21 hours ago
The pull request implements changes primarily focused on enhancing error handling across multiple methods in the balancer
, stableswap
, and lockup
modules. The modifications replace the use of fmt.Sprintf
for error message formatting with more direct approaches, improving clarity and readability. Additionally, descriptive error messages have been added to various methods, ensuring that error reporting is more informative without altering the existing functionality or control flow of the methods.
File Path | Change Summary |
---|---|
x/gamm/pool-models/balancer/pool.go | Improved error handling in getPoolAssetAndIndex by replacing fmt.Sprintf with errorsmod.Wrapf . |
x/gamm/pool-models/stableswap/pool.go | Simplified error message formatting in CalcOutAmtGivenIn and updated error handling in CalcInAmtGivenOut . |
x/lockup/keeper/lock.go | Enhanced error wrapping in AddToExistingLock to provide more context on token addition failures. |
x/lockup/keeper/msg_server.go | Updated error handling in ExtendLockup and ForceUnlock methods with clearer messages and response flags. |
tests/e2e/configurer/chain/commands.go | Changed logging format in InstantiateWasmContract and WasmExecute methods for improved clarity. |
tests/e2e/containers/containers.go | Simplified logging in ExecCmd method by removing unnecessary fmt.Sprintf . |
x/txfees/keeper/feedecorator.go | Enhanced error messages in DeductFees for insufficient funds to provide clearer feedback. |
fmt.Errorf
with errors.New
, which aligns with the error handling improvements made in the main PR.A:backport/v27.x
[!WARNING] There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure.
🔧 golangci-lint
level=warning msg="The linter 'exportloopref' is deprecated (since v1.60.2) due to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar."
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you!
Closes: #XXX
What is the purpose of the change
Bumps cloud.google.com/go/pubsub from 1.44.0 to 1.45.1.
Testing and Verifying
Documentation and Release Note
Unreleased
section ofCHANGELOG.md
?Where is the change documented?
x/{module}/README.md
)