Skip to content

Commit

Permalink
Fix error message when a route is not defined.
Browse files Browse the repository at this point in the history
Print the name of the route too - the ID is irrelevant for the script writter.

(cherry picked from commit 4094818)
  • Loading branch information
bogdan-iancu committed Jul 7, 2016
1 parent d3e9b6a commit 186c4c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion route.c
Expand Up @@ -280,7 +280,8 @@ static int fix_actions(struct action* a)
goto error;
}
if ( rlist[t->elem[0].u.number].a==NULL ) {
LM_ERR("called route %d is not defined\n",
LM_ERR("called route [%s] (id=%d) is not defined\n",
rlist[t->elem[0].u.number].name,
(int)t->elem[0].u.number);
ret = E_CFG;
goto error;
Expand Down

0 comments on commit 186c4c2

Please sign in to comment.