Bug 672878 - follow-up to un-nest an if. a=dumb

This commit is contained in:
Richard Newman 2011-09-22 13:46:28 -07:00
Родитель e7a6bed65e
Коммит 128738870e
1 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -425,20 +425,20 @@ RESTRequest.prototype = {
// From nsIRequest.
requestStatus = channel.status;
this._log.trace("Request status is " + requestStatus);
if (statusSuccess && (statusCode != requestStatus)) {
this._log.error("Request status " + requestStatus +
" does not match status arg " + statusCode);
try {
channel.responseStatus;
} catch (ex) {
this._log.error("... and we got " + Utils.exceptionStr(ex) +
" retrieving responseStatus.");
}
}
} catch (ex) {
this._log.warn("Got exception " + Utils.exceptionStr(ex) +
" fetching channel.status.");
}
if (statusSuccess && (statusCode != requestStatus)) {
this._log.error("Request status " + requestStatus +
" does not match status arg " + statusCode);
try {
channel.responseStatus;
} catch (ex) {
this._log.error("... and we got " + Utils.exceptionStr(ex) +
" retrieving responseStatus.");
}
}
let requestStatusSuccess = Components.isSuccessCode(requestStatus);