Repository navigation
Commit 1ef3d6f
fix: use the libuv errno for the synthetic EEXIST error
os.constants.errno.EEXIST is the CRT value on Windows (17), but Node's fs
errors carry libuv's UV_EEXIST (-4075 there). Look up the errno via
util.getSystemErrorMap() so it matches a real open(outputFile, 'wx') error.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 94adbfa commit 1ef3d6f
1 file changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
105 | 123 | | |
106 | 124 | | |
107 | 125 | | |
| |||
1670 | 1688 | | |
1671 | 1689 | | |
1672 | 1690 | | |
1673 | | - | |
| 1691 | + | |
1674 | 1692 | | |
1675 | 1693 | | |
1676 | 1694 | | |
| |||
0 commit comments