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

Function errorHandler

dlp/inspectDatastore.js:137–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 };
136
137 const errorHandler = err => {
138 subscription.removeListener('message', messageHandler);
139 subscription.removeListener('error', errorHandler);
140 reject(err);
141 };
142
143 subscription.on('message', messageHandler);
144 subscription.on('error', errorHandler);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected