Skip to content

Commit 0f6eb2f

Browse files
committed
Print errors reading sentry-endpoint
1 parent b60ca3b commit 0f6eb2f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/nix/main.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,11 @@ void mainWrapped(int argc, char ** argv)
388388

389389
if (!sentryEndpoint && getEnv("DETSYS_IDS_TELEMETRY") != "disabled") {
390390
try {
391-
sentryEndpoint = trim(readFile(settings.nixConfDir / "sentry-endpoint"));
391+
auto p = settings.nixConfDir / "sentry-endpoint";
392+
if (pathExists(p))
393+
sentryEndpoint = trim(readFile(p));
392394
} catch (...) {
395+
ignoreExceptionExceptInterrupt();
393396
}
394397
}
395398

0 commit comments

Comments
 (0)