MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / captureException

Function captureException

cli/src/telemetry/sentry.ts:111–116  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

109 .replace(/\bfile:\/\/\S+/gi, PATH_REDACT)
110 .replace(/\bhttps?:\/\/\S+/gi, URL_REDACT)
111 .replace(/\\{2}[^\s'")\]]+/g, PATH_REDACT)
112 .replace(/\b[a-zA-Z]:\\[^\s'")\]]+/g, PATH_REDACT)
113 .replace(unixPathRe, PATH_REDACT);
114}
115
116export function captureException(error: unknown) {
117 if (!sentryEnabled) {
118 return;
119 }

Callers 2

proton-drive.tsFile · 0.90
runSingleInvocationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected