Skip to content

Commit

Permalink
Add comments to connection error log message to indicate that server …
Browse files Browse the repository at this point in the history
…code

has to be updated when a new error is added here.

BUG=

Review URL: https://codereview.chromium.org/788933002

Cr-Commit-Position: refs/heads/master@{#307619}
  • Loading branch information
sriramsr authored and Commit bot committed Dec 10, 2014
1 parent 9eb8d5d commit c890fa0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions remoting/webapp/crd/js/server_log_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ remoting.ServerLogEntry.KEY_CONNECTION_ERROR_ = 'connection-error';
*/
remoting.ServerLogEntry.getValueForError =
function(connectionError) {
// Directory service should be updated if a new string is added here as
// otherwise the error code will be ignored (i.e. recorded as 0 instead).
switch(connectionError) {
case remoting.Error.NONE:
return 'none';
Expand Down

0 comments on commit c890fa0

Please sign in to comment.