Merge pull request #3438 from alrs/fix-cmd-error

cmd/lncli: Fix dropped error
This commit is contained in:
Olaoluwa Osuntokun 2019-09-03 19:59:30 -07:00 committed by GitHub
commit c397a2ea78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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