mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
catch exceptions when trying to find out user's cluster
This commit is contained in:
parent
a6a5e2c58e
commit
a53adc5e28
@ -434,8 +434,10 @@ WeaveSvc.prototype = {
|
||||
let ret = false;
|
||||
|
||||
this._log.debug("Finding cluster for user " + username);
|
||||
let res = new Resource(this.baseURL + "api/register/chknode/" + username);
|
||||
yield res.get(self.cb);
|
||||
try {
|
||||
let res = new Resource(this.baseURL + "api/register/chknode/" + username);
|
||||
yield res.get(self.cb);
|
||||
} catch (e) { /* we check status below */ }
|
||||
|
||||
if (res.lastChannel.responseStatus == 404) {
|
||||
this._log.debug("Using serverURL as data cluster (multi-cluster support disabled)");
|
||||
|
Loading…
Reference in New Issue
Block a user