fix(compilation): set target to source text on compilation error