Skip to content

Commit

Permalink
Bug 618340: don't report network failure for unknown errors. r=philiKON
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Newman committed Dec 11, 2010
1 parent 26320af commit 57101da
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions services/sync/modules/service.js
Expand Up @@ -764,9 +764,11 @@ WeaveSvc.prototype = {
Status.login = LOGIN_FAILED_INVALID_PASSPHRASE;
Status.sync = CREDENTIALS_CHANGED;
}
else
// Assume that every other failure is network-related.
Status.login = LOGIN_FAILED_NETWORK_ERROR;
else {
// In the absence of further disambiguation or more precise
// failure constants, just report failure.
Status.login = LOGIN_FAILED;
}
return false;
}
}
Expand Down

0 comments on commit 57101da

Please sign in to comment.