Skip to content

Commit

Permalink
🐛 Ensure cache root exists before opening it (#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
misode authored Dec 10, 2024
1 parent 28a9d70 commit ad20d9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/service/Project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,7 @@ export class Project implements ExternalEventEmitter {
}

try {
await fileUtil.ensureDir(this.externals, this.#cacheRoot)
await this.externals.fs.showFile(this.#cacheRoot)
} catch (e) {
this.logger.error('[Service#showCacheRoot]', e)
Expand Down

0 comments on commit ad20d9b

Please sign in to comment.