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.
This commit is contained in:
Christian Decker 2017-02-22 11:23:50 +01:00 committed by Rusty Russell
parent 26d4042436
commit 51a22c4274
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -9,7 +9,7 @@ lightning-getroute - Protocol for routing a payment.
SYNOPSIS
--------
*getroute* 'msatoshi' 'id' 'riskfactor'
*getroute* 'id' 'msatoshi' 'riskfactor'
DESCRIPTION
-----------