A rejected value as a message shows it: a string quoted as JSON.stringify does, with any URL
userinfo cut out (redactUrl, so a credential URL passed in the wrong place never reaches the
message) and cut at MAX_QUOTED_LENGTH. What JSON leaves raw although it is invisible or a
terminal acts on it is escaped too: DEL, the C1 controls, every Unicode format character (a
zero-width space, a soft hyphen, a bidi override) and U+2028/U+2029 ("a\u200bb"), so a
refusal shows the character that caused it, and the quoted part stays a valid JSON string.
A rejected value as a message shows it: a string quoted as
JSON.stringifydoes, with any URL userinfo cut out (redactUrl, so a credential URL passed in the wrong place never reaches the message) and cut atMAX_QUOTED_LENGTH. What JSON leaves raw although it is invisible or a terminal acts on it is escaped too: DEL, the C1 controls, every Unicode format character (a zero-width space, a soft hyphen, a bidi override) and U+2028/U+2029 ("a\u200bb"), so a refusal shows the character that caused it, and the quoted part stays a valid JSON string.