Skip to content

Commit 42bf833

Browse files
add catch for mkdir export
1 parent edb843b commit 42bf833

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/util/fs.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ export const readFileSync = (filePath) => {
100100
*/
101101
export const mkdir = (path) => {
102102
debug(`mkdir called on ${path}`)
103-
return mkdirp(path).then(() => '')
103+
return mkdirp(path)
104+
.then(() => '')
105+
.catch(error => Promise.reject(error))
104106
}
105107

106108
/**

0 commit comments

Comments
 (0)