diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-08-25 06:34:44 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-08-25 06:34:44 +0000 |
commit | 8c3baac9863349beeb25d3d854da64c41330975c (patch) | |
tree | db1ed4f29967618055aa943890806847f1573a06 /main/pbx.c | |
parent | e7c4ccee7fb7f84cb61cbe1f5a06667bfbbc21e5 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@213970 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c index f34661ce5..1672b5332 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -1529,14 +1529,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; } |