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

Function errorHandler

dlp/lDiversityAnalysis.js:120–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected