This commit is contained in:
Fabrice Marsaud 2016-01-27 10:58:16 +01:00
parent ccdc744748
commit 3b53f5ac11
3 changed files with 4 additions and 7 deletions

View File

@ -16,7 +16,6 @@ get.params = {
}
export async function list ({id}) {
console.log(id)
return await this.listRemoteBackups(id)
}

View File

@ -8,15 +8,11 @@ import {
export default class RemoteHandlerAbstract {
constructor (remote) {
this._remote = parse({...remote})
if (!this._remote.type === this.type) {
if (this._remote.type !== this.type) {
throw new Error('Incorrect remote type')
}
}
_getInfo (remote) {
throw new Error('Not implemented')
}
get type () {
throw new Error('Not implemented')
}

View File

@ -112,7 +112,9 @@ export default class {
async forgetAllRemotes () {
const remotes = await this.getAllRemotes()
for (let remote of remotes) {
await remote.handler.forget()
try {
(await this.getRemoteHandler(remote)).forget()
} catch (_) {}
}
}