Print what read-only variable is being set so that the user doesn't have to guess...
authorJoshua Colp <jcolp@digium.com>
Wed, 30 Aug 2006 15:15:06 +0000 (15:15 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 30 Aug 2006 15:15:06 +0000 (15:15 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41357 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cdr.c

index 93c6375..04d7ea8 100644 (file)
@@ -290,7 +290,7 @@ int ast_cdr_setvar(struct ast_cdr *cdr, const char *name, const char *value, int
        
        for(x = 0; cdr_readonly_vars[x]; x++) {
                if (!strcasecmp(name, cdr_readonly_vars[x])) {
-                       ast_log(LOG_ERROR, "Attempt to set a read-only variable!.\n");
+                       ast_log(LOG_ERROR, "Attempt to set the '%s' read-only variable!.\n", name);
                        return -1;
                }
        }