Print the faulty character for easier finding it.
I did not find out how to split the format string into two lines such
that self.fail would properly print the whole thing in its exception,
so we have a long line here.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
dirs = set()
for c in set(s):
if is_bad_char(c):
- self.fail(f"{name} has potentially bad format characters!")
+ self.fail(f"{name} has potentially bad format character {ord(c[0])}!")
dirs.add(u.bidirectional(c))
if 'L' in dirs and 'R' in dirs: