util.go: add FormatErrorPos to give line and cursor of error position.