Browse code

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

(cherry picked from commit 02ad9e1b87f89b9456d0d85e16c2fe0cda67ab64)
(cherry picked from commit 2273d7d856b5c1fca1ec24fbb6ee249793ea6719)
(cherry picked from commit 34ee120ab555b9aab364af4570033c3a08451fda)

Daniel-Constantin Mierla authored on 21/05/2021 06:40:21 • Henning Westerholt committed on 22/10/2021 11:55:17
Showing 1 changed files
... ...
@@ -2440,8 +2440,8 @@ char* tr_parse_string(str* in, trans_t *t)
2440 2440
 		while(*p && (*p==' ' || *p=='\t' || *p=='\n')) p++;
2441 2441
 		if(*p!=TR_RBRACKET)
2442 2442
 		{
2443
-			LM_ERR("invalid select transformation: %.*s!!\n",
2444
-					in->len, in->s);
2443
+			LM_ERR("invalid select transformation: %.*s (c:%c/%d - p:%d)!!\n",
2444
+					in->len, in->s, *p, *p, (int)(p - in->s));
2445 2445
 			goto error;
2446 2446
 		}
2447 2447
 		goto done;