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

Function errorHandler

dlp/numericalRiskAnalysis.js:117–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 };
116
117 const errorHandler = err => {
118 subscription.removeListener('message', messageHandler);
119 subscription.removeListener('error', errorHandler);
120 reject(err);
121 };
122
123 subscription.on('message', messageHandler);
124 subscription.on('error', errorHandler);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected