String textIntro = xhr.getResponseText();
if (textIntro != null && textIntro.length() > MAX_LOG_LENGTH) {
textIntro = textIntro.substring(0, MAX_LOG_LENGTH) + "...";
}
onLoadError(request,
new HttpInstallFailure(request.url, textIntro, e), false);
}
} else {
onLoadError(request,
new HttpDownloadFailure(request.url, xhr.getStatus(),
xhr.getStatusText()), true);