Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Maël Nison committed Aug 16, 2017
1 parent 93fc256 commit 16f1cce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,13 @@ export default class Config {
const tentativeCacheFolder = String(preferredCacheFolders[t]);

try {
console.log(tentativeCacheFolder);
await fs.mkdirp(tentativeCacheFolder);
// eslint-disable-next-line
await fs.access(tentativeCacheFolder, fs.constants.R_OK | fs.constants.W_OK | fs.constants.X_OK);
cacheRootFolder = tentativeCacheFolder;
} catch (error) {
console.log(error);
this.reporter.warn(this.reporter.lang('cacheFolderSkipped', tentativeCacheFolder));
}

Expand Down
1 change: 1 addition & 0 deletions src/reporters/base-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export default class BaseReporter {
success(message: string) {}

// a simple log message
// TODO: rethink the {force} parameter. In the meantime, please don't use it (cf comments in #4143).
log(message: string, {force = false}: {force?: boolean} = {}) {}

// a shell command has been executed
Expand Down

0 comments on commit 16f1cce

Please sign in to comment.