This commit is contained in:
Kovid Goyal 2022-09-19 19:55:00 +05:30
parent 7cf9b21fc0
commit 4cbd2a0ee0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -609,12 +609,12 @@ parse_sgr(Screen *screen, uint32_t *buf, unsigned int num, int *params, PyObject
case COLOR: case COLOR:
case COLOR1: case COLOR1:
case COLOR3: case COLOR3:
REPORT_ERROR("Invalid SGR code containing disallowed character: %s", utf8(buf[i])); REPORT_ERROR("Invalid SGR code containing disallowed character: %s (U+%x)", utf8(buf[i]), buf[i]);
return; return;
} }
break; break;
default: default:
REPORT_ERROR("Invalid SGR code containing disallowed character: %s", utf8(buf[i])); REPORT_ERROR("Invalid SGR code containing disallowed character: %s (U+%x)", utf8(buf[i]), buf[i]);
return; return;
} }
} }