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

Function errorHandler

dlp/inspectGCSFile.js:126–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 };
125
126 const errorHandler = err => {
127 subscription.removeListener('message', messageHandler);
128 subscription.removeListener('error', errorHandler);
129 reject(err);
130 };
131
132 subscription.on('message', messageHandler);
133 subscription.on('error', errorHandler);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected