From 773fdee1ff1052bd1cf5f2f508b2358e4fc7c35d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Fri, 10 May 2024 16:19:19 +0200 Subject: [PATCH] fix: don't report wallet screening errors to Sentry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/filecoin-station/core/pull/450 Signed-off-by: Miroslav Bajtoš --- main/core.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main/core.js b/main/core.js index 1e5f41136..0489e5a0a 100644 --- a/main/core.js +++ b/main/core.js @@ -129,6 +129,13 @@ async function start (ctx) { childProcess.on('close', code => { console.log(`Core closed all stdio with code ${code ?? ''}`) + if (code === 2) { + // FIL_WALLET_ADDRESS did not pass our screening. There is not much + // we can do about that, there is no point in reporting this error + // to Sentry. + return + } + Sentry.captureException('Core exited', scope => { // Sentry UI can't show the full 100 lines scope.setExtra('logs', logs.getLastLines(10))