Browse code

pv: more details in err log message for s.select parsing

Daniel-Constantin Mierla authored on 21/05/2021 06:40:21
Showing 1 changed files
... ...
@@ -2734,8 +2734,8 @@ char* tr_parse_string(str* in, trans_t *t)
2734 2734
 		while(*p && (*p==' ' || *p=='\t' || *p=='\n')) p++;
2735 2735
 		if(*p!=TR_RBRACKET)
2736 2736
 		{
2737
-			LM_ERR("invalid select transformation: %.*s!!\n",
2738
-					in->len, in->s);
2737
+			LM_ERR("invalid select transformation: %.*s (c:%c/%d - p:%d)!!\n",
2738
+					in->len, in->s, *p, *p, (int)(p - in->s));
2739 2739
 			goto error;
2740 2740
 		}
2741 2741
 		goto done;