From: Alan T. DeKok Date: Wed, 4 Jul 2018 17:10:04 +0000 (-0400) Subject: print out error when we receive it X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e27d1cbeabd226bc8a03bd93135007ebc2068b0;p=thirdparty%2Ffreeradius-server.git print out error when we receive it --- diff --git a/src/main/unit_test_attribute.c b/src/main/unit_test_attribute.c index 9eba77b2341..71d9b15b4ad 100644 --- a/src/main/unit_test_attribute.c +++ b/src/main/unit_test_attribute.c @@ -754,8 +754,7 @@ static void command_add(TALLOC_CTX *ctx, char *input, char *output, size_t outle table->read_only = true; if (fr_command_add(ctx, &command_head, name, NULL, table) < 0) { - printf("SHIT adding %s\n", name); - snprintf(output, outlen, "ERROR: failed adding command ???"); + snprintf(output, outlen, "ERROR: failed adding command - %s", fr_strerror()); return; }