TryInvokeIfRequired => Invoke
MODIFY
WalletWasabi.Fluent.Desktop/Program.cs
WalletWasabi.Fluent.Desktop/Program.cs
@@ -105,7 +105,7 @@ namespace WalletWasabi.Fluent.Desktop
if (exceptionToReport is { })
{
// Trigger the CrashReport process if required.
- CrashReporter.TryInvokeIfRequired(exceptionToReport);
+ CrashReporter.Invoke(exceptionToReport);
}
AppDomain.CurrentDomain.UnhandledException -= CurrentDomain_UnhandledException;

MODIFY
WalletWasabi.Fluent/CrashReport/CrashReporter.cs
WalletWasabi.Fluent/CrashReport/CrashReporter.cs
@@ -8,11 +8,11 @@ namespace WalletWasabi.Fluent.CrashReport
{
public static class CrashReporter
{
- public static bool TryInvokeIfRequired(Exception exceptionToReport)
+ public static void Invoke(Exception exceptionToReport)
{
if (exceptionToReport is null)
{
- return false;
+ return;
}
try
@@ -29,15 +29,11 @@ namespace WalletWasabi.Fluent.CrashReport
ProcessStartInfo startInfo = ProcessStartInfoFactory.Make(path, args);
using Process? p = Process.Start(startInfo);
-
- return true;
}
catch (Exception ex)
{
Logger.LogWarning($"There was a problem while invoking crash report: '{ex}'.");
}
-
- return false;
}
public static bool TryGetExceptionFromCliArgs(string[] args, out SerializableException? exception)

TryInvokeIfRequired => Invoke