Commit 54a8bbd
committed
fix: narrow NotFound handling to exclude missing cwd in AzureDevOpsCli
VcsProcessSpawnError with a NotFound platform cause can be triggered by
either a missing executable or a non-existent working directory. The
previous check only tested reason._tag === 'NotFound', which
incorrectly diagnosed bad cwd paths as 'az CLI not available'.
Add two additional guards mirroring the pattern in GitVcsDriverCore:
- pathOrDescriptor !== context.cwd excludes fs.access cwd validation
- syscall !== 'chdir' excludes the rare spawn-level cwd failure1 parent 67eff03 commit 54a8bbd
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
0 commit comments