Skip to content
Snippets Groups Projects
Commit 3028eb1c authored by Joshua Colp's avatar Joshua Colp
Browse files

Print what read-only variable is being set so that the user doesn't have to...

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
parent 0855df6a
Branches
Tags
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment