* Creates an ENOENT error for virtual file system operations. * @param {string} syscall The system call name * @param {string} path The path that was not found * @returns {Error}
(syscall, path)
| 29 | * @returns {Error} |
| 30 | */ |
| 31 | function createENOENT(syscall, path) { |
| 32 | const err = new UVException({ |
| 33 | errno: UV_ENOENT, |
| 34 | syscall, |
| 35 | path, |
| 36 | }); |
| 37 | ErrorCaptureStackTrace(err, createENOENT); |
| 38 | return err; |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Creates an ENOTDIR error. |
no outgoing calls
no test coverage detected
searching dependent graphs…