mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-19 18:48:03 +01:00
multi: wrap all errors
This commit is contained in:
committed by
Andras Banki-Horvath
parent
9a28a4c105
commit
648fb22f63
@@ -1811,7 +1811,7 @@ func getChanInfo(ctx *cli.Context) error {
|
||||
case ctx.Args().Present():
|
||||
chanID, err = strconv.ParseUint(ctx.Args().First(), 10, 64)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error parsing chan_id: %s", err)
|
||||
return fmt.Errorf("error parsing chan_id: %w", err)
|
||||
}
|
||||
default:
|
||||
return fmt.Errorf("chan_id argument missing")
|
||||
|
||||
Reference in New Issue
Block a user