cmd/lncli: Fix dropped error

This commit is contained in:
Lars Lehtonen committed 2019-09-03 12:29:26 -07:00
1 parent 281c535b49
commit 686fee57ee
1 file changed
+3
+3
View File
@@ -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")
}