I'm using ttypescript to hook my custom transform into the compiler, which works just fine. I've identified a situation in which I need to throw a compile error (syntax error) along the same channels and in the same format that typescript does.
How do I do this?