def _print_sql_with_error(self, sql, error_line):
if os.linesep in sql:<EOL><INDENT>lines = sql.split(os.linesep)<EOL>digits = math.ceil(math.log(len(lines) + <NUM_LIT:1>, <NUM_LIT:10>))<EOL>i = <NUM_LIT:1><EOL>for line in lines:<EOL><INDENT>if i == error_line:<EOL><INDENT>self._io.text('<STR_LIT>'.format(i, line, width=digits, ))<EOL><DEDENT>else:<EOL><INDENT>self._io.text('<STR_LIT>'.format(i, line, width=digits, ))<EOL><DEDENT>i += <NUM_LIT:1><EOL><DEDENT><DEDENT>else:<EOL><INDENT>self._io.text(sql)<EOL><DEDENT>
Writes a SQL statement with an syntax error to the output. The line where the error occurs is highlighted.

:param str sql: The SQL statement.
:param int error_line: The line where the error occurs.