If `offset` is the correct number to print for the column of the error, it probably is not also the correct number of spaces to insert before the `^` indicator, because the column numbers should be 1-based. For example, if the printed column number is 3, then 2 spaces should be inserted before the `^`.