Browse code

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

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

Daniel-Constantin Mierla authored on 21/05/2021 06:40:21
Showing 1 changed files
... ...
@@ -2532,8 +2532,8 @@ char* tr_parse_string(str* in, trans_t *t)
2532 2532
 		while(*p && (*p==' ' || *p=='\t' || *p=='\n')) p++;
2533 2533
 		if(*p!=TR_RBRACKET)
2534 2534
 		{
2535
-			LM_ERR("invalid select transformation: %.*s!!\n",
2536
-					in->len, in->s);
2535
+			LM_ERR("invalid select transformation: %.*s (c:%c/%d - p:%d)!!\n",
2536
+					in->len, in->s, *p, *p, (int)(p - in->s));
2537 2537
 			goto error;
2538 2538
 		}
2539 2539
 		goto done;