(err, filename)
| 244 | } |
| 245 | |
| 246 | function throwReadError(err, filename) { |
| 247 | let msg = `Cannot read snapshot file '${filename}.'`; |
| 248 | |
| 249 | if (err?.code === 'ENOENT') { |
| 250 | msg += ` ${kMissingSnapshotTip}`; |
| 251 | } |
| 252 | |
| 253 | const error = new ERR_INVALID_STATE(msg); |
| 254 | error.cause = err; |
| 255 | error.filename = filename; |
| 256 | throw error; |
| 257 | } |
| 258 | |
| 259 | function throwWriteError(err, filename) { |
| 260 | const msg = `Cannot write snapshot file '${filename}.'`; |
no outgoing calls
no test coverage detected
searching dependent graphs…