cmd/lncli: Fix dropped error
This commit is contained in:
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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user