Skip to content

Commit ce4d4c4

Browse files
Merge pull request #89 from Sebastian-Webster/88-lockfile-is-already-being-held-error
Fix lockfile already being held error
2 parents ea24693 + 46bb9c6 commit ce4d4c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/Executor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ class Executor {
356356
return
357357
}
358358
} catch (error) {
359-
if (String(error) === 'Error: Lock file is already being held') {
359+
if (String(error).includes('Lock file is already being held')) {
360360
this.logger.log('Waiting for lock for libaio copy')
361361
await waitForLock(copyPath, options)
362362
this.logger.log('Lock is gone for libaio copy')

0 commit comments

Comments
 (0)