fix: make ENOENT a warning, it isn't a real error
This commit is contained in:
@ -608,8 +608,13 @@ export const systemIOMachineDesktop = systemIOMachine.provide({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
if (e === 'ENOENT') {
|
||||||
|
console.warn(`checking if folder is created, ${input.requestedAbsolutePath}`)
|
||||||
|
console.warn(e)
|
||||||
|
} else {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
await window.electron.mkdir(input.requestedAbsolutePath, {
|
await window.electron.mkdir(input.requestedAbsolutePath, {
|
||||||
recursive: true,
|
recursive: true,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user