* Creates an EINVAL error for invalid argument. * @param {string} syscall The system call name * @param {string} path The path * @returns {Error}
(syscall, path)
| 139 | * @returns {Error} |
| 140 | */ |
| 141 | function createEINVAL(syscall, path) { |
| 142 | const err = new UVException({ |
| 143 | errno: UV_EINVAL, |
| 144 | syscall, |
| 145 | path, |
| 146 | }); |
| 147 | ErrorCaptureStackTrace(err, createEINVAL); |
| 148 | return err; |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * Creates an ELOOP error for too many symbolic links. |
no outgoing calls
no test coverage detected