MCPcopy Create free account
hub / github.com/facebook/memlab / processErrorIfNotNull

Method processErrorIfNotNull

packages/core/src/lib/StringLoader.ts:33–39  ·  view source on GitHub ↗
(err: NodeFSError)

Source from the content-addressed store, hash-verified

31
32class StringLoader {
33 processErrorIfNotNull(err: NodeFSError): void {
34 if (!err) {
35 return;
36 }
37 info.error(err.message);
38 throw err;
39 }
40
41 // This API reads specified file one chunk at a time,
42 // identifies and returns the content that:

Callers

nothing calls this directly

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected