replace throw Error with this.fail and col, line numbers