refactor(ngcc): improve locker pausing message (#36838)
When ngcc is having to pause and wait for another process it provides a message to the user. This commit adds the extra information about how to remove the lockfile if desired, since this message is not shown if you Ctrl-C out of the process before the timeout period ends. PR Close #36838
This commit is contained in:

committed by
Alex Rickabaugh

parent
35c6ed2675
commit
ee435761fd
@ -52,7 +52,9 @@ export class AsyncLocker {
|
||||
if (attempts === 0) {
|
||||
this.logger.info(
|
||||
`Another process, with id ${pid}, is currently running ngcc.\n` +
|
||||
`Waiting up to ${this.retryDelay * this.retryAttempts / 1000}s for it to finish.`);
|
||||
`Waiting up to ${this.retryDelay * this.retryAttempts / 1000}s for it to finish.\n` +
|
||||
`(If you are sure no ngcc process is running then you should delete the lock-file at ${
|
||||
this.lockFile.path}.)`);
|
||||
}
|
||||
// The file is still locked by another process so wait for a bit and retry
|
||||
await new Promise(resolve => setTimeout(resolve, this.retryDelay));
|
||||
|
Reference in New Issue
Block a user