Skip to content

Commit

Permalink
core: more details on error log on failed comp_num() expression
Browse files Browse the repository at this point in the history
(cherry picked from commit a85bdf5)
  • Loading branch information
miconda committed Jan 16, 2020
1 parent ad4871f commit f61b2de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/route.c
Expand Up @@ -1212,7 +1212,8 @@ inline static int comp_num(int op, long left, int rtype, union exp_op* r,
}
break;
default:
LM_CRIT("Invalid right operand (%d)\n", rtype);
LM_CRIT("Invalid right operand (rtype: %d expr-op: %d lval: %ld)\n",
rtype, op, left);
return E_BUG;
}

Expand Down

0 comments on commit f61b2de

Please sign in to comment.