_updateErrorHandler(error) {
    log.error('Update error', error);
    this.state = 4;
    this.lastInfoObject = error;
    this.emit('notify-windows', 'autoupdate-error', {
      message: error.message,
      code: error.code
    });
    this.emit('status-changed', 'not-available');
    if (error && error.code && error.code === 8) {
      let message = 'Unable to update the application when it runs in';
      message += ' read-only mode. Move the application to the Applications';
      message += ' folder first and try again.';
      this._notifyUser('Update error', message, true);
    } else {
      this._notifyUser('Update error', error.message, true);
    }
  }
/**
   * Emitted when there is an error while updating.
   *
   * @param {Error} error Error from the library.
   */
Emitted when there is an error while updating.
@param {Error} error Error from the library.
Emitted when there is an error while updating . @param { Error } error Error from the library .
_updateErrorHandler(error) {
    log.error('Update error', error);
    this.state = 4;
    this.lastInfoObject = error;
    this.emit('notify-windows', 'autoupdate-error', {
      message: error.message,
      code: error.code
    });
    this.emit('status-changed', 'not-available');
    if (error && error.code && error.code === 8) {
      let message = 'Unable to update the application when it runs in';
      message += ' read-only mode. Move the application to the Applications';
      message += ' folder first and try again.';
      this._notifyUser('Update error', message, true);
    } else {
      this._notifyUser('Update error', error.message, true);
    }
  }
_updateErrorHandler ( error ) { log . error ( 'Update error' , error ) ; this . state = 4 ; this . lastInfoObject = error ; this . emit ( 'notify-windows' , 'autoupdate-error' , { message : error . message , code : error . code } ) ; this . emit ( 'status-changed' , 'not-available' ) ; if ( error && error . code && error . code === 8 ) { let message = 'Unable to update the application when it runs in' ; message += ' read-only mode. Move the application to the Applications' ; message += ' folder first and try again.' ; this . _notifyUser ( 'Update error' , message , true ) ; } else { this . _notifyUser ( 'Update error' , error . message , true ) ; } }
Emitted when there is an error while updating.
Emitted when there is an error while updating .