B2G/gecko/services/sync/modules/service.js
/**
   * Perform the info fetch as part of a login or key fetch.
   */
Perform the info fetch as part of a login or key fetch.
Perform the info fetch as part of a login or key fetch .
function _fetchInfo(url) {
    let infoURL = url || this.infoURL;
    this._log.trace("In _fetchInfo: " + infoURL);
    let info;
    try {
      info = new Resource(infoURL).get();
    } catch (ex) {
      ErrorHandler.checkServerError(ex);
      throw ex;
    }
    if (!info.success) {
      ErrorHandler.checkServerError(info);
      throw "aborting sync, failed to get collections";
    }
    return info;
  }
function _fetchInfo ( url ) { let infoURL = url || this . infoURL ; this . _log . trace ( "In _fetchInfo: " + infoURL ) ; let info ; try { info = new Resource ( infoURL ) . get ( ) ; } catch ( ex ) { ErrorHandler . checkServerError ( ex ) ; throw ex ; } if ( ! info . success ) { ErrorHandler . checkServerError ( info ) ; throw "aborting sync, failed to get collections" ; } return info ; }
Perform the info fetch as part of a login or key fetch.
Perform the info fetch as part of a login or key fetch .