E0076: nested_quote
E0076 nested_quote — an unescaped quote inside an interpolation.
A compile-time error of soma check, the checker of the Soma programming language (soma explain E0076).
The rule
An unescaped " inside {...} ends the string literal, so "Invoice {id}: {if paid { "paid" } else { "due" }}" is split into several pieces. soma check warns that a string literal ends inside {...} under the code W0014 (habit_warning), and the leftover pieces are reported as errors. Bind the inner value first (let state = if paid { "paid" } else { "due" }, then "{state}"), or escape the quote.
When you see it
soma check reports this rule (kind nested_quote) as the warning W0014 habit_warning, never as E0076: the checker files every "habit" issue under W0014, usually next to errors such as E0045 for the pieces the split string leaves behind.