MCPcopy Index your code
hub / github.com/nodejs/node / readFile

Method readFile

deps/v8/tools/logreader.mjs:114–121  ·  view source on GitHub ↗

* A thin wrapper around shell's 'read' function showing a file name on error.

(fileName)

Source from the content-addressed store, hash-verified

112 * A thin wrapper around shell's 'read' function showing a file name on error.
113 */
114 readFile(fileName) {
115 try {
116 return read(fileName);
117 } catch (e) {
118 printErr(`file="${fileName}": ${e.message || e}`);
119 throw e;
120 }
121 }
122
123 /**
124 * Used for printing error messages.

Callers 15

getVotingRecordsFunction · 0.45
checkFilesFunction · 0.45
readFunction · 0.45
readFunction · 0.45
readFunction · 0.45
readFunction · 0.45
readAsFetchMethod · 0.45
assertSnapshotFunction · 0.45

Calls 2

printErrFunction · 0.85
readFunction · 0.50

Tested by

no test coverage detected