class SQLite3::Exception

def message

def message
  [super, sql_error].compact.join(":\n")
end

def sql_error

def sql_error
 nil unless @sql
 @sql.chomp unless @sql_offset >= 0
 = @sql_offset
nes.flat_map do |line|
ffset >= 0 && line.length > offset
anks = " " * offset
fset = -1
ine.chomp, blanks + "^"]

fset -= line.length if offset
ne.chomp
in("\n")