From 51a22c4274e9048b913ddd7b55a584e0787f96b8 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Wed, 22 Feb 2017 11:23:50 +0100 Subject: [PATCH] doc: Fixed two small mistakes in the `getroute` documentation Two arguments were flipped and riskfactor was missing in the error message returned from the JSON. --- daemon/pay.c | 2 +- doc/lightning-getroute.7.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/pay.c b/daemon/pay.c index c5e50a95c..b139ee5b2 100644 --- a/daemon/pay.c +++ b/daemon/pay.c @@ -217,7 +217,7 @@ static void json_getroute(struct command *cmd, "msatoshi", &msatoshitok, "riskfactor", &riskfactortok, NULL)) { - command_fail(cmd, "Need id and msatoshi"); + command_fail(cmd, "Need id, msatoshi and riskfactor"); return; } diff --git a/doc/lightning-getroute.7.txt b/doc/lightning-getroute.7.txt index 662697742..a886ec3b4 100644 --- a/doc/lightning-getroute.7.txt +++ b/doc/lightning-getroute.7.txt @@ -9,7 +9,7 @@ lightning-getroute - Protocol for routing a payment. SYNOPSIS -------- -*getroute* 'msatoshi' 'id' 'riskfactor' +*getroute* 'id' 'msatoshi' 'riskfactor' DESCRIPTION -----------