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

Function errorHandler

dlp/kMapEstimationAnalysis.js:121–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected