From 3028eb1c15015719cc31042b7dba6b647273304f Mon Sep 17 00:00:00 2001
From: Joshua Colp <jcolp@digium.com>
Date: Wed, 30 Aug 2006 15:15:06 +0000
Subject: [PATCH] Print what read-only variable is being set so that the user
 doesn't have to guess and figure it out or look at the list in cdr.c and
 match it up (issue #7831 reported by sedwards)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 main/cdr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/cdr.c b/main/cdr.c
index 93c63751fa..04d7ea8338 100644
--- a/main/cdr.c
+++ b/main/cdr.c
@@ -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;
 		}
 	}
-- 
GitLab