mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
ux: use trimmed error message
This commit is contained in:
parent
7acd6e42fe
commit
7ee7964799
2 changed files with 5 additions and 7 deletions
|
@ -120,8 +120,8 @@ namespace SourceGit.Commands
|
||||||
{
|
{
|
||||||
if (RaiseError)
|
if (RaiseError)
|
||||||
{
|
{
|
||||||
var errMsg = string.Join("\n", errs);
|
var errMsg = string.Join("\n", errs).Trim();
|
||||||
if (!string.IsNullOrWhiteSpace(errMsg))
|
if (!string.IsNullOrEmpty(errMsg))
|
||||||
Dispatcher.UIThread.Post(() => App.RaiseException(Context, errMsg));
|
Dispatcher.UIThread.Post(() => App.RaiseException(Context, errMsg));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -125,11 +125,9 @@
|
||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Border Grid.Row="1" Margin="8" Background="Transparent">
|
<ScrollViewer Grid.Row="1" Margin="8" MaxHeight="200" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
|
||||||
<ScrollViewer MaxHeight="200" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
|
<TextBlock Margin="4,2" TextWrapping="Wrap" Text="{Binding Message}"/>
|
||||||
<TextBlock Margin="4,2" TextWrapping="Wrap" Text="{Binding Message}"/>
|
</ScrollViewer>
|
||||||
</ScrollViewer>
|
|
||||||
</Border>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
Loading…
Reference in a new issue