log error for tern 'type' request