Skip to content

Commit b034f0d

Browse files
Update Flow.Launcher.Infrastructure/Win32Helper.cs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 17ecebf commit b034f0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher.Infrastructure/Win32Helper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,9 @@ public static Task<T> StartSTATaskAsync<T>(Func<T> func)
370370
{
371371
taskCompletionSource.SetResult(func());
372372
}
373-
catch (System.Exception)
373+
catch (System.Exception ex)
374374
{
375-
taskCompletionSource.SetResult(default);
375+
taskCompletionSource.SetException(ex);
376376
}
377377
finally
378378
{

0 commit comments

Comments
 (0)