mirror of https://github.com/BTCPrivate/copay.git
fix error handling in google drive
This commit is contained in:
parent
810ce0bf5d
commit
d391817819
|
@ -172,7 +172,9 @@ GoogleDrive.prototype.setItem = function(k, v, cb) {
|
|||
// console.log('[googleDrive.js.148:args:]', args); //TODO
|
||||
|
||||
var request = gapi.client.request(args);
|
||||
request.execute(cb);
|
||||
request.execute(function(ret) {
|
||||
return cb(ret.kind === 'drive#file' ? null : new Error('error saving file on drive'));
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue