lib/sparkql/errors.rb in sparkql-0.3.20 vs lib/sparkql/errors.rb in sparkql-0.3.21

- old
+ new

@@ -36,15 +36,16 @@ end end class ParserError - attr_accessor :token, :expression, :message, :status, :recovered_as + attr_accessor :token, :token_index, :expression, :message, :status, :recovered_as attr_writer :syntax, :constraint def initialize(error_hash={}) @token = error_hash[:token] + @token_index = error_hash[:token_index] @expression = error_hash[:expression] @message = error_hash[:message] @status = error_hash[:status] @recovered_as = error_hash[:recovered_as] @recovered_as = error_hash[:recovered_as] @@ -78,6 +79,6 @@ str += "<#{@expression}>: #{@message}." str end end -end \ No newline at end of file +end