Skip to content

Commit eeefbff

Browse files
committed
feat(gDriveSync): better error case handling
1 parent 52722c7 commit eeefbff

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app-src/scripts/main/global-services/google-drive-sync-s.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@
196196
editable: true
197197
})
198198
.then((res) => {
199-
console.log(res);
200-
//this.config.syncFileName
201199
this.data.backupDocId = res.data.id;
202200
this.data.lastSyncToRemote = res.data.modifiedDate;
203201
// also needs to be updated
@@ -339,7 +337,7 @@
339337
this._load().then((loadRes) => {
340338
this._import(loadRes);
341339
defer.resolve(loadRes);
342-
});
340+
}, defer.reject);
343341
} else {
344342
this._load().then((loadRes) => {
345343
const lastModifiedRemote = loadRes.meta.modifiedDate;
@@ -348,7 +346,7 @@
348346
this._import(loadRes);
349347
defer.resolve(loadRes);
350348
}, defer.reject);
351-
});
349+
}, defer.reject);
352350
}
353351

354352
return defer.promise;

0 commit comments

Comments
 (0)