From 1851ebbc56f2f5c5003e43b51abc1a24055c7d47 Mon Sep 17 00:00:00 2001 From: Mark Beckwith Date: Sat, 28 Jul 2018 12:59:06 -0500 Subject: [PATCH] programer -> developer Signed-off-by: Mark Beckwith --- lightningd/param.c | 4 ++-- lightningd/test/run-param.c | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lightningd/param.c b/lightningd/param.c index a2c7f43be..5049efeaa 100644 --- a/lightningd/param.c +++ b/lightningd/param.c @@ -284,7 +284,7 @@ static bool param_arr(struct command *cmd, const char *buffer, { #if DEVELOPER if (!check_params(params)) { - command_fail(cmd, PARAM_DEV_ERROR, "programmer error"); + command_fail(cmd, PARAM_DEV_ERROR, "developer error"); return false; } #endif @@ -312,7 +312,7 @@ bool param(struct command *cmd, const char *buffer, void *arg = va_arg(ap, void *); size_t argsize = va_arg(ap, size_t); if (!param_add(¶ms, name, required, cb, arg, argsize)) { - command_fail(cmd, PARAM_DEV_ERROR, "programmer error"); + command_fail(cmd, PARAM_DEV_ERROR, "developer error"); va_end(ap); return false; } diff --git a/lightningd/test/run-param.c b/lightningd/test/run-param.c index e78916477..eb8d26dc7 100644 --- a/lightningd/test/run-param.c +++ b/lightningd/test/run-param.c @@ -268,33 +268,33 @@ static void bad_programmer(void) p_req("double", json_tok_double, &dval), p_req("repeat", json_tok_u64, &ival2), NULL)); assert(check_fail()); - assert(strstr(fail_msg, "programmer error")); + assert(strstr(fail_msg, "developer error")); assert(!param(cmd, j->buffer, j->toks, p_req("repeat", json_tok_u64, &ival), p_req("double", json_tok_double, &dval), p_req("repeat", json_tok_u64, &ival), NULL)); assert(check_fail()); - assert(strstr(fail_msg, "programmer error")); + assert(strstr(fail_msg, "developer error")); assert(!param(cmd, j->buffer, j->toks, p_req("u64", json_tok_u64, &ival), p_req("repeat", json_tok_double, &dval), p_req("repeat", json_tok_double, &dval), NULL)); assert(check_fail()); - assert(strstr(fail_msg, "programmer error")); + assert(strstr(fail_msg, "developer error")); /* check for repeated arguments */ assert(!param(cmd, j->buffer, j->toks, p_req("u64", json_tok_u64, &ival), p_req("repeated-arg", json_tok_u64, &ival), NULL)); assert(check_fail()); - assert(strstr(fail_msg, "programmer error")); + assert(strstr(fail_msg, "developer error")); assert(!param(cmd, j->buffer, j->toks, p_req("u64", (param_cb) NULL, &ival), NULL)); assert(check_fail()); - assert(strstr(fail_msg, "programmer error")); + assert(strstr(fail_msg, "developer error")); /* Add required param after optional */ j = json_parse(cmd, "[ '25', '546', '26', '1.1' ]"); @@ -306,7 +306,7 @@ static void bad_programmer(void) p_opt_def("msatoshi", json_tok_number, &msatoshi, 100), p_req("riskfactor", json_tok_double, &riskfactor), NULL)); assert(check_fail()); - assert(strstr(fail_msg, "programmer error")); + assert(strstr(fail_msg, "developer error")); } #endif