# File lib/plugins/user_stream.rb, line 15
    def self.repack_error(error, chunk)
      new_error = error.class.new("#{error.message} (#{JSON.parse(chunk).inspect})")
      error.instance_variables.each{ |v|
        new_error.instance_variable_set(v, error.instance_variable_get(v))
      }
      new_error
    rescue
      error
    end