Browse code

print the cfg file in fixup error message

- line is not enough when include_file is used

Daniel-Constantin Mierla authored on 15/11/2009 13:32:40
Showing 1 changed files
... ...
@@ -1022,7 +1022,8 @@ int fix_actions(struct action* a)
1022 1022
 	return 0;
1023 1023
 
1024 1024
 error:
1025
-	LM_ERR("fixing failed (code=%d) at cfg line %d\n", ret, t->cline);
1025
+	LM_ERR("fixing failed (code=%d) at cfg:%s:%d\n", ret,
1026
+			(t->cfile)?t->cfile:"", t->cline);
1026 1027
 	return ret;
1027 1028
 }
1028 1029