Skip to content

Commit

Permalink
Merge branch 'release/0.9.1' into npm
Browse files Browse the repository at this point in the history
  • Loading branch information
mashpie committed May 3, 2020
2 parents ca9e435 + 98f51c2 commit 80251c2
Show file tree
Hide file tree
Showing 3 changed files with 383 additions and 288 deletions.
7 changes: 6 additions & 1 deletion i18n.js
Expand Up @@ -1120,7 +1120,12 @@ module.exports = (function() {
stats = fs.lstatSync(directory);
} catch (e) {
logDebug('creating locales dir in: ' + directory);
fs.mkdirSync(directory, directoryPermissions);
try {
fs.mkdirSync(directory, directoryPermissions);
} catch (e) {
// in case of parallel tasks utilizing in same dir
if (e.code !== 'EEXIST') throw e;
}
}

// first time init has an empty file
Expand Down

0 comments on commit 80251c2

Please sign in to comment.