Module: sip-router
Branch: master
Commit: 2b680bde0605cbc1cb4840105fafc83a2a235ec5
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2b680bd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Jul 15 13:48:21 2010 +0200
core: print line for include_file errors
- easier to localize the error, reported by Raul Alexis Betancor Santana
---
cfg.lex | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/cfg.lex b/cfg.lex
index e4b5486..564cb56 100644
--- a/cfg.lex
+++ b/cfg.lex
@@ -1249,7 +1249,10 @@ SUBST subst
<INCLF>[ \t]* /* eat the whitespace */
<INCLF>[^ \t\n]+ { /* get the include file name */
if(sr_push_yy_state(yytext)<0)
+ {
+ LOG(L_CRIT, "error at %s line %d\n", (finame)?finame:"cfg",
line);
exit(-1);
+ }
BEGIN(INITIAL);
}