Skip to content

Commit 879b84a

Browse files
authored
enhance: Show the stderr content from QueryLocalChanges (#1327)
1 parent 7f86ad9 commit 879b84a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Commands/QueryLocalChanges.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Text.RegularExpressions;
4+
using Avalonia.Threading;
45

56
namespace SourceGit.Commands
67
{
@@ -22,7 +23,10 @@ public QueryLocalChanges(string repo, bool includeUntracked = true)
2223
var outs = new List<Models.Change>();
2324
var rs = ReadToEnd();
2425
if (!rs.IsSuccess)
26+
{
27+
Dispatcher.UIThread.Post(() => App.RaiseException(Context, rs.StdErr));
2528
return outs;
29+
}
2630

2731
var lines = rs.StdOut.Split(['\r', '\n'], StringSplitOptions.RemoveEmptyEntries);
2832
foreach (var line in lines)

0 commit comments

Comments
 (0)