[sr-dev] git:sr_3.0: print the cfg file in fixup error message
Juha Heinanen
jh at tutpro.com
Sun Nov 15 23:46:39 CET 2009
Module: sip-router
Branch: sr_3.0
Commit: 0fdf0f2913b2e8e35026a8fd1c88ba09d9f7f19a
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0fdf0f2913b2e8e35026a8fd1c88ba09d9f7f19a
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Juha Heinanen <jh at tutpro.com>
Date: Sun Nov 15 14:32:40 2009 +0100
print the cfg file in fixup error message
- line is not enough when include_file is used
---
route.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/route.c b/route.c
index 8887c8a..1aeb529 100644
--- a/route.c
+++ b/route.c
@@ -1022,7 +1022,8 @@ int fix_actions(struct action* a)
return 0;
error:
- LM_ERR("fixing failed (code=%d) at cfg line %d\n", ret, t->cline);
+ LM_ERR("fixing failed (code=%d) at cfg:%s:%d\n", ret,
+ (t->cfile)?t->cfile:"", t->cline);
return ret;
}
More information about the sr-dev
mailing list