Skip to content

Commit 2b2921f

Browse files
authored
Update MessageLoader for Mac (#121)
Macs may throw an additional error here that we're not handling. Fixes #115
1 parent 63c6e0e commit 2b2921f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/messageGeneration/MessageLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function createDirectory(directory) {
2323
function createLocal(dirPath) {
2424
return new Promise((resolve, reject) => {
2525
fs.mkdir(dirPath, (err) => {
26-
if (err && err.code !== 'EEXIST') {
26+
if (err && err.code !== 'EEXIST' && err.code !== 'EISDIR') {
2727
reject(err);
2828
}
2929
resolve();

0 commit comments

Comments
 (0)