summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2009-08-25 06:35:37 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2009-08-25 06:35:37 +0000
commitc1b4f0c4c92cb2124eecd74d7dad76d5b8964f96 (patch)
tree71c70dada1e2a93f275bf0d15d79a200e3c92b47 /main
parentde28a23966942724a3ce298d8085d5cd97de509d (diff)
Merged revisions 213970 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r213970 | tilghman | 2009-08-25 01:34:44 -0500 (Tue, 25 Aug 2009) | 7 lines Improve error message by informing user exactly which function is missing a parethesis. (closes issue #15242) Reported by: Nick_Lewis Patches: pbx.c-funcparenthesis.patch2 uploaded by dbrooks (license 790) pbx.c-funcparenthesis-1.4.diff uploaded by loloski (license 68) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@213971 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/pbx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 9570009ee..f72941c28 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -3411,14 +3411,14 @@ static char *func_args(char *function)
char *args = strchr(function, '(');
if (!args) {
- ast_log(LOG_WARNING, "Function doesn't contain parentheses. Assuming null argument.\n");
+ ast_log(LOG_WARNING, "Function '%s' doesn't contain parentheses. Assuming null argument.\n", function);
} else {
char *p;
*args++ = '\0';
if ((p = strrchr(args, ')'))) {
*p = '\0';
} else {
- ast_log(LOG_WARNING, "Can't find trailing parenthesis?\n");
+ ast_log(LOG_WARNING, "Can't find trailing parenthesis for function '%s(%s'?\n", function, args);
}
}
return args;