Skip to content

Commit fc5bcf6

Browse files
committed
Put additional error catching log to atomicFS
1 parent 366a977 commit fc5bcf6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/ssg/lib/fileSystemHelpers.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,22 @@ const atomicFS = (() => {
8585
`)
8686
await sleep(delayMS)
8787
continue
88+
} else {
89+
console.log(`
90+
+ + + +
91+
Caught other error or maxRetries is reached (${i}/${maxRetries})
92+
93+
function:
94+
`)
95+
console.log(fn.toString())
96+
console.log(`
97+
98+
error:
99+
`)
100+
console.log(error)
101+
console.log(`
102+
+ + + +
103+
`)
88104
}
89105
throw error
90106
}

0 commit comments

Comments
 (0)