cmd/lncli: Fix dropped error

This commit is contained in:
Lars Lehtonen 2019-08-29 17:47:06 -07:00
parent 281c535b49
commit 686fee57ee

@ -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")
}