Skip to content

Commit

Permalink
default to unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed Jan 9, 2025
1 parent 721c91e commit 2c5b59a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/integrations/sentry-minidump/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const sentryMinidumpIntegration = defineIntegration((options: Options = {
const found = await sendNativeCrashes(client, (minidumpProcess) => {
// We only call 'getRendererName' if this was in fact a renderer crash
const crashedProcess =
(minidumpProcess === 'renderer' ? getRendererName?.(contents) : minidumpProcess) || 'renderer';
(minidumpProcess === 'renderer' ? getRendererName?.(contents) : minidumpProcess) || 'unknown';

logger.log(`'${crashedProcess}' process '${details.reason}'`);

Expand Down Expand Up @@ -248,7 +248,7 @@ export const sentryMinidumpIntegration = defineIntegration((options: Options = {
platform: 'native',
tags: {
'event.environment': 'native',
'event.process': minidumpProcess || 'browser',
'event.process': minidumpProcess || 'unknown',
},
}))
.then((minidumpsFound) =>
Expand Down

0 comments on commit 2c5b59a

Please sign in to comment.