Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
Prevent exception from logging when server restarted from trying to u…
Browse files Browse the repository at this point in the history
…nsafeParse non-JSON data

R=dbk
DELTA=4 (3 added, 1 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6019


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2397 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
  • Loading branch information
jeffcon@google.com committed Dec 19, 2012
1 parent 2e1bbb2 commit aa0b315
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion closure/goog/net/channelrequest.js
Expand Up @@ -683,12 +683,14 @@ goog.net.ChannelRequest.prototype.onXmlHttpReadyStateChanged_ = function() {
this.lastError_ = goog.net.ChannelRequest.Error.UNKNOWN_SESSION_ID;
goog.net.BrowserChannel.notifyStatEvent(
goog.net.BrowserChannel.Stat.REQUEST_UNKNOWN_SESSION_ID);
this.channelDebug_.warning('XMLHTTP Unknown SID (' + this.rid_ + ')');
} else {
this.lastError_ = goog.net.ChannelRequest.Error.STATUS;
goog.net.BrowserChannel.notifyStatEvent(
goog.net.BrowserChannel.Stat.REQUEST_BAD_STATUS);
this.channelDebug_.warning(
'XMLHTTP Bad status ' + status + ' (' + this.rid_ + ')');
}
this.channelDebug_.xmlHttpChannelResponseText(this.rid_, responseText);
this.cleanup_();
this.dispatchFailure_();
return;
Expand Down

0 comments on commit aa0b315

Please sign in to comment.