Repository: node
Issue: fs.stat error message is different with fs.statSync on windows
Labels: fs

### Version

v16.18.0

### Platform

Microsoft Windows NT 10.0.18363.0 x64

### Subsystem

_No response_

### What steps will reproduce the bug?

Run following code:

```javascript
const fs = require('fs');
const fsp = require('fs/promises');

async function main() {
  try {
    fs.statSync('a');
  } catch (e) {
    console.log(e);
  }

  try {
    await fsp.stat('a');
  } catch (e) {
    console.log(e);
  }
}

main();
```

In mac, you can see result:

<img width="939" alt="image" src="https://user-images.githubusercontent.com/41773861/209551701-fc2c983a-d6db-4b38-80ff-e501c9d7be37.png">

```
❯ node a.js                        
Error: ENOENT: no such file or directory, stat 'a'
    at Object.statSync (node:fs:1596:3)
    at main (/Users/yutengjing/code/format-imports/a.js:6:8)
    at Object.<anonymous> (/Users/yutengjing/code/format-imports/a.js:18:1)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  errno: -2,
  syscall: 'stat',
  code: 'ENOENT',
  path: 'a'
}
[Error: ENOENT: no such file or directory, stat 'a'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: 'a'
}
```

In windows, you can see result:

<img width="1440" alt="image" src="https://user-images.githubusercontent.com/41773861/209442718-7f8b8bf7-7f57-41bd-9060-095892204041.png">

```
PS C:\code\format-imports> node ./a.js
Error: ENOENT: no such file or directory, stat 'a'
    at Object.statSync (node:fs:1583:3)
    at main (C:\code\format-imports\a.js:6:8)
    at Object.<anonymous> (C:\code\format-imports\a.js:18:1)
    at Module._compile (node:internal/modules/cjs/loader:1155:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
    at Module.load (node:internal/modules/cjs/loader:1033:32)
    at Function.Module._load (node:internal/modules/cjs/loader:868:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)   
    at node:internal/main/run_main_module:22:47 {
  errno: -4058,
  syscall: 'stat',
  code: 'ENOENT',
  path: 'a'
}
[Error: ENOENT: no such file or directory, stat 'C:\code\format-imports\a'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'stat',
  path: 'C:\\code\\format-imports\\a'
}
PS C:\code\format-imports> 
```



### How often does it reproduce? Is there a required condition?

Always

### What is the expected behavior?

In windows, the error message of fs.stat and fs.statSync should be same

### What do you see instead?

In windows, one is passed path, one is absolute path.

- fs.stat: `Error: ENOENT: no such file or directory, stat 'a'`
- fs.statSync: `Error: ENOENT: no such file or directory, stat 'C:\code\format-imports\a'`

But in Macos, they are same.



### Additional information

_No response_