mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
Merge pull request #3438 from alrs/fix-cmd-error
cmd/lncli: Fix dropped error
This commit is contained in:
commit
c397a2ea78
1 changed files with 3 additions and 0 deletions
|
@ -2910,6 +2910,9 @@ func getChanInfo(ctx *cli.Context) error {
|
|||
chanID = ctx.Int64("chan_id")
|
||||
case ctx.Args().Present():
|
||||
chanID, err = strconv.ParseInt(ctx.Args().First(), 10, 64)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error parsing chan_id: %s", err)
|
||||
}
|
||||
default:
|
||||
return fmt.Errorf("chan_id argument missing")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue