Merge pull request #3438 from alrs/fix-cmd-error
cmd/lncli: Fix dropped error
This commit is contained in:
commit
c397a2ea78
@ -2910,6 +2910,9 @@ func getChanInfo(ctx *cli.Context) error {
|
|||||||
chanID = ctx.Int64("chan_id")
|
chanID = ctx.Int64("chan_id")
|
||||||
case ctx.Args().Present():
|
case ctx.Args().Present():
|
||||||
chanID, err = strconv.ParseInt(ctx.Args().First(), 10, 64)
|
chanID, err = strconv.ParseInt(ctx.Args().First(), 10, 64)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("error parsing chan_id: %s", err)
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("chan_id argument missing")
|
return fmt.Errorf("chan_id argument missing")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user