mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 11:44:59 +00:00
enhance: Show the stderr content from QueryLocalChanges
This commit is contained in:
parent
7f86ad9f22
commit
204aed4fa3
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
using Avalonia.Threading;
|
||||||
|
|
||||||
namespace SourceGit.Commands
|
namespace SourceGit.Commands
|
||||||
{
|
{
|
||||||
|
@ -22,7 +23,10 @@ namespace SourceGit.Commands
|
||||||
var outs = new List<Models.Change>();
|
var outs = new List<Models.Change>();
|
||||||
var rs = ReadToEnd();
|
var rs = ReadToEnd();
|
||||||
if (!rs.IsSuccess)
|
if (!rs.IsSuccess)
|
||||||
|
{
|
||||||
|
Dispatcher.UIThread.Post(() => App.RaiseException(Context, rs.StdErr));
|
||||||
return outs;
|
return outs;
|
||||||
|
}
|
||||||
|
|
||||||
var lines = rs.StdOut.Split(['\r', '\n'], StringSplitOptions.RemoveEmptyEntries);
|
var lines = rs.StdOut.Split(['\r', '\n'], StringSplitOptions.RemoveEmptyEntries);
|
||||||
foreach (var line in lines)
|
foreach (var line in lines)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue