fixed storage-file-cache logging and callbacks

This commit is contained in:
antelle 2017-02-21 19:55:50 +01:00
parent a102a5877c
commit 7f9a6a31b7
1 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,9 @@ const StorageFileCache = StorageBase.extend({
const setPath = (err) => {
this.path = err ? null : path;
if (err) {
this.logger.error('Error opening local offline storage', err);
}
return callback && callback(err);
};
@ -30,7 +33,7 @@ const StorageFileCache = StorageBase.extend({
if (exists) {
setPath();
} else {
Launcher.mkdir(path, setPath());
Launcher.mkdir(path, setPath);
}
});
},