Преглед изворни кода

print the cfg file in fixup error message

- line is not enough when include_file is used
Daniel-Constantin Mierla пре 16 година
родитељ
комит
33bfc5aeea
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      route.c

+ 2 - 1
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;
 }