An apostrophe inside a single-quoted value ends that quote, and the line then failed as a bare 'unclosed quote' with no position and no way out named. The splitter's rules stay the shell's; the refusal now names the character, shows the line from there and gives the two ways to write a quote.