]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print out error when we receive it
authorAlan T. DeKok <aland@freeradius.org>
Wed, 4 Jul 2018 17:10:04 +0000 (13:10 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 4 Jul 2018 17:10:04 +0000 (13:10 -0400)
src/main/unit_test_attribute.c

index 9eba77b2341cef5c861cc357c44d4d2c16ae6deb..71d9b15b4ad2f177d4ce1b161a0900804d772843 100644 (file)
@@ -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;
        }