Skip to content

Commit

Permalink
feat: Add index:watcher_error:unknown telemetry event
Browse files Browse the repository at this point in the history
  • Loading branch information
symwell committed Dec 13, 2022
1 parent a631928 commit 1a77606
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/cli/src/fingerprint/fingerprintWatchCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ export default class FingerprintWatchCommand {
console.warn("File watching disabled.");
} else if (error.message.includes("UNKNOWN: unknown error, lstat")) {
console.warn(error.stack);
Telemetry.sendEvent({
name: `index:watcher_error:unknown`,
properties: {
errorMessage: error.message,
errorStack: error.stack,
},
});
} else {
// let it crash if it's some other error, to learn what the error is
throw error;
Expand Down

0 comments on commit 1a77606

Please sign in to comment.