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

Function errorHandler

dlp/inspectBigQuery.js:133–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 };
132
133 const errorHandler = err => {
134 subscription.removeListener('message', messageHandler);
135 subscription.removeListener('error', errorHandler);
136 reject(err);
137 };
138
139 subscription.on('message', messageHandler);
140 subscription.on('error', errorHandler);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected