process: improve error message when cwd no longer exists #3178
test-shared.yml
on: pull_request
Build slim tarball
1m 33s
Matrix: build
Annotations
8 errors
|
aarch64-linux: with shared libraries
Process completed with exit code 2.
|
|
aarch64-linux: with shared libraries:
test/parallel/test-cwd-enoent-improved-message.js#L25
--- stderr ---
node:assert:456
throw err;
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
Comparison {
code: 'ENOENT',
+ message: 'The current working directory does not exist. It may have been deleted or unmounted. Change to an existing directory and try again.'
- message: 'ENOENT: process.cwd failed with error no such file or directory, the current working directory was likely removed without changing the working directory, uv_cwd'
}
at Object.<anonymous> (/home/runner/work/_temp/node-v26.0.0-nightly2026-02-095979ee26b4-slim/test/parallel/test-cwd-enoent-improved-message.js:25:8)
at Module._compile (node:internal/modules/cjs/loader:1811:14)
at Object..js (node:internal/modules/cjs/loader:1942:10)
at Module.load (node:internal/modules/cjs/loader:1532:32)
at Module._load (node:internal/modules/cjs/loader:1334:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: Error: The current working directory does not exist. It may have been deleted or unmounted. Change to an existing directory and try again.
at process.wrappedCwd [as cwd] (node:internal/bootstrap/switches/does_own_process_state:146:27)
at assert.throws.code (/home/runner/work/_temp/node-v26.0.0-nightly2026-02-095979ee26b4-slim/test/parallel/test-cwd-enoent-improved-message.js:26:17)
at getActual (node:assert:580:5)
at assert.throws (node:assert:728:24)
at Object.<anonymous> (/home/runner/work/_temp/node-v26.0.0-nightly2026-02-095979ee26b4-slim/test/parallel/test-cwd-enoent-improved-message.js:25:8)
at Module._compile (node:internal/modules/cjs/loader:1811:14)
at Object..js (node:internal/modules/cjs/loader:1942:10)
at Module.load (node:internal/modules/cjs/loader:1532:32)
at Module._load (node:internal/modules/cjs/loader:1334:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) {
code: 'ENOENT',
syscall: 'process.cwd'
},
expected: {
code: 'ENOENT',
message: 'ENOENT: process.cwd failed with error no such file or directory, the current working directory was likely removed without changing the working directory, uv_cwd'
},
operator: 'throws',
diff: 'simple'
}
Node.js v26.0.0-pre
Command: out/Release/node /home/runner/work/_temp/node-v26.0.0-nightly2026-02-095979ee26b4-slim/test/parallel/test-cwd-enoent-improved-message.js
|
|
x86_64-linux: with shared libraries
Process completed with exit code 2.
|
|
x86_64-linux: with shared libraries:
test/parallel/test-cwd-enoent-improved-message.js#L25
--- stderr ---
node:assert:456
throw err;
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
Comparison {
code: 'ENOENT',
+ message: 'The current working directory does not exist. It may have been deleted or unmounted. Change to an existing directory and try again.'
- message: 'ENOENT: process.cwd failed with error no such file or directory, the current working directory was likely removed without changing the working directory, uv_cwd'
}
at Object.<anonymous> (/home/runner/work/_temp/node-v26.0.0-nightly2026-02-095979ee26b4-slim/test/parallel/test-cwd-enoent-improved-message.js:25:8)
at Module._compile (node:internal/modules/cjs/loader:1811:14)
at Object..js (node:internal/modules/cjs/loader:1942:10)
at Module.load (node:internal/modules/cjs/loader:1532:32)
at Module._load (node:internal/modules/cjs/loader:1334:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: Error: The current working directory does not exist. It may have been deleted or unmounted. Change to an existing directory and try again.
at process.wrappedCwd [as cwd] (node:internal/bootstrap/switches/does_own_process_state:146:27)
at assert.throws.code (/home/runner/work/_temp/node-v26.0.0-nightly2026-02-095979ee26b4-slim/test/parallel/test-cwd-enoent-improved-message.js:26:17)
at getActual (node:assert:580:5)
at assert.throws (node:assert:728:24)
at Object.<anonymous> (/home/runner/work/_temp/node-v26.0.0-nightly2026-02-095979ee26b4-slim/test/parallel/test-cwd-enoent-improved-message.js:25:8)
at Module._compile (node:internal/modules/cjs/loader:1811:14)
at Object..js (node:internal/modules/cjs/loader:1942:10)
at Module.load (node:internal/modules/cjs/loader:1532:32)
at Module._load (node:internal/modules/cjs/loader:1334:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) {
code: 'ENOENT',
syscall: 'process.cwd'
},
expected: {
code: 'ENOENT',
message: 'ENOENT: process.cwd failed with error no such file or directory, the current working directory was likely removed without changing the working directory, uv_cwd'
},
operator: 'throws',
diff: 'simple'
}
Node.js v26.0.0-pre
Command: out/Release/node /home/runner/work/_temp/node-v26.0.0-nightly2026-02-095979ee26b4-slim/test/parallel/test-cwd-enoent-improved-message.js
|
|
aarch64-darwin: with shared libraries
Process completed with exit code 2.
|
|
aarch64-darwin: with shared libraries:
test/parallel/test-cwd-enoent-improved-message.js#L25
--- stderr ---
node:assert:456
throw err;
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
Comparison {
code: 'ENOENT',
+ message: 'The current working directory does not exist. It may have been deleted or unmounted. Change to an existing directory and try again.'
- message: 'ENOENT: process.cwd failed with error no such file or directory, the current working directory was likely removed without changing the working directory, uv_cwd'
}
at Object.<anonymous> (/Users/runner/work/_temp/node-v26.0.0-nightly2026-02-095979ee26b4-slim/test/parallel/test-cwd-enoent-improved-message.js:25:8)
at Module._compile (node:internal/modules/cjs/loader:1811:14)
at Object..js (node:internal/modules/cjs/loader:1942:10)
at Module.load (node:internal/modules/cjs/loader:1532:32)
at Module._load (node:internal/modules/cjs/loader:1334:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: Error: The current working directory does not exist. It may have been deleted or unmounted. Change to an existing directory and try again.
at process.wrappedCwd [as cwd] (node:internal/bootstrap/switches/does_own_process_state:146:27)
at assert.throws.code (/Users/runner/work/_temp/node-v26.0.0-nightly2026-02-095979ee26b4-slim/test/parallel/test-cwd-enoent-improved-message.js:26:17)
at getActual (node:assert:580:5)
at assert.throws (node:assert:728:24)
at Object.<anonymous> (/Users/runner/work/_temp/node-v26.0.0-nightly2026-02-095979ee26b4-slim/test/parallel/test-cwd-enoent-improved-message.js:25:8)
at Module._compile (node:internal/modules/cjs/loader:1811:14)
at Object..js (node:internal/modules/cjs/loader:1942:10)
at Module.load (node:internal/modules/cjs/loader:1532:32)
at Module._load (node:internal/modules/cjs/loader:1334:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) {
code: 'ENOENT',
syscall: 'process.cwd'
},
expected: {
code: 'ENOENT',
message: 'ENOENT: process.cwd failed with error no such file or directory, the current working directory was likely removed without changing the working directory, uv_cwd'
},
operator: 'throws',
diff: 'simple'
}
Node.js v26.0.0-pre
Command: out/Release/node /Users/runner/work/_temp/node-v26.0.0-nightly2026-02-095979ee26b4-slim/test/parallel/test-cwd-enoent-improved-message.js
|
|
x86_64-darwin: with shared libraries
Process completed with exit code 2.
|
|
x86_64-darwin: with shared libraries:
test/parallel/test-cwd-enoent-improved-message.js#L25
--- stderr ---
node:assert:456
throw err;
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
Comparison {
code: 'ENOENT',
+ message: 'The current working directory does not exist. It may have been deleted or unmounted. Change to an existing directory and try again.'
- message: 'ENOENT: process.cwd failed with error no such file or directory, the current working directory was likely removed without changing the working directory, uv_cwd'
}
at Object.<anonymous> (/Users/runner/work/_temp/node-v26.0.0-nightly2026-02-095979ee26b4-slim/test/parallel/test-cwd-enoent-improved-message.js:25:8)
at Module._compile (node:internal/modules/cjs/loader:1811:14)
at Object..js (node:internal/modules/cjs/loader:1942:10)
at Module.load (node:internal/modules/cjs/loader:1532:32)
at Module._load (node:internal/modules/cjs/loader:1334:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: Error: The current working directory does not exist. It may have been deleted or unmounted. Change to an existing directory and try again.
at process.wrappedCwd [as cwd] (node:internal/bootstrap/switches/does_own_process_state:146:27)
at assert.throws.code (/Users/runner/work/_temp/node-v26.0.0-nightly2026-02-095979ee26b4-slim/test/parallel/test-cwd-enoent-improved-message.js:26:17)
at getActual (node:assert:580:5)
at assert.throws (node:assert:728:24)
at Object.<anonymous> (/Users/runner/work/_temp/node-v26.0.0-nightly2026-02-095979ee26b4-slim/test/parallel/test-cwd-enoent-improved-message.js:25:8)
at Module._compile (node:internal/modules/cjs/loader:1811:14)
at Object..js (node:internal/modules/cjs/loader:1942:10)
at Module.load (node:internal/modules/cjs/loader:1532:32)
at Module._load (node:internal/modules/cjs/loader:1334:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19) {
code: 'ENOENT',
syscall: 'process.cwd'
},
expected: {
code: 'ENOENT',
message: 'ENOENT: process.cwd failed with error no such file or directory, the current working directory was likely removed without changing the working directory, uv_cwd'
},
operator: 'throws',
diff: 'simple'
}
Node.js v26.0.0-pre
Command: out/Release/node /Users/runner/work/_temp/node-v26.0.0-nightly2026-02-095979ee26b4-slim/test/parallel/test-cwd-enoent-improved-message.js
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
tarballs
|
47.8 MB |
sha256:ccb0d121f5975eaeb73e4f475976acdd52866be57bd8dc571c610e66d7307a96
|
|