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

Function reportError

error-reporting/quickstart.js:29–35  ·  view source on GitHub ↗
(exception)

Source from the content-addressed store, hash-verified

27}
28
29function reportError(exception) {
30 // Instantiates a client
31 const errors = new ErrorReporting();
32
33 // Reports an exception
34 errors.report(exception.stack);
35}
36// [END error_reporting_quickstart]
37
38quickstart();

Callers 1

quickstartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected