renderFailure
Render diagnostics in the standard compiler format (source:line:col: severity: message, the offending source line, then a caret under the column) — that prefix is what editors make clickable. Locations are relative to the source handed to the compiler, which is the original snippet, so line N maps straight back to what was written.