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

Function errorHandler

dlp/kAnonymityAnalysis.js:113–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 };
112
113 const errorHandler = err => {
114 subscription.removeListener('message', messageHandler);
115 subscription.removeListener('error', errorHandler);
116 reject(err);
117 };
118
119 subscription.on('message', messageHandler);
120 subscription.on('error', errorHandler);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected