Skip to content

Commit 0181a41

Browse files
committed
finally
1 parent 303c92f commit 0181a41

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Sentry.Unity.Editor/Native/BuildPostProcess.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,11 @@ public static void OnPostProcessBuild(BuildTarget target, string executablePath)
6969
logger.LogError(e, "Failed to add the Sentry native integration to the built application");
7070
throw new BuildFailedException("Sentry Native BuildPostProcess failed");
7171
}
72-
73-
UploadDebugSymbols(logger, target, buildOutputDir, executableName, options, cliOptions, isMono);
72+
finally
73+
{
74+
// We always want to end up with the debug symbols being uploadde
75+
UploadDebugSymbols(logger, target, buildOutputDir, executableName, options, cliOptions, isMono);
76+
}
7477
}
7578

7679
private static bool IsEnabledForPlatform(BuildTarget target, SentryUnityOptions options) => target switch

0 commit comments

Comments
 (0)