MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / errorHandler

Function errorHandler

dlp/inspectGcsFileWithSampling.js:122–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 };
121
122 const errorHandler = err => {
123 subscription.removeListener('message', messageHandler);
124 subscription.removeListener('error', errorHandler);
125 clearTimeout(timer);
126 reject(err);
127 };
128
129 subscription.on('message', messageHandler);
130 subscription.on('error', errorHandler);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected