kopia lustrzana https://github.com/c9/core
commit
2beb3c6441
|
@ -170,7 +170,7 @@ define(function(require, exports, module) {
|
||||||
// just take the first server that doesn't return an error
|
// just take the first server that doesn't return an error
|
||||||
(function tryNext(i) {
|
(function tryNext(i) {
|
||||||
if (i >= servers.length) {
|
if (i >= servers.length) {
|
||||||
metrics.increment("connect_failed_all", 1, true);
|
metrics.increment("vfs.failed.connect_all", 1, true);
|
||||||
return callback(new Error("Disconnected: Could not reach your workspace. Please try again later."));
|
return callback(new Error("Disconnected: Could not reach your workspace. Please try again later."));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -206,7 +206,7 @@ define(function(require, exports, module) {
|
||||||
|
|
||||||
vfsEndpoint.get(protocolVersion, function(err, urls) {
|
vfsEndpoint.get(protocolVersion, function(err, urls) {
|
||||||
if (err) {
|
if (err) {
|
||||||
metrics.increment("connect_failed", 1, true);
|
metrics.increment("vfs.failed.connect", 1, true);
|
||||||
if (!showErrorTimer) {
|
if (!showErrorTimer) {
|
||||||
showErrorTimer = setTimeout(function() {
|
showErrorTimer = setTimeout(function() {
|
||||||
showVfsError(showErrorTimerMessage);
|
showVfsError(showErrorTimerMessage);
|
||||||
|
|
Ładowanie…
Reference in New Issue