writes error position into browser terminal