diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2023-12-24 13:27:42 +0100 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2023-12-25 04:53:41 +0000 |
commit | 1481012f371253576e8235d6905c344c8d8c0f53 (patch) | |
tree | c1dbf253a3c4d09c7e99232fb2c8a7bf67f1ad5b | |
parent | ca3fab3a9354627a5aaee0f5e4c9a86dab27e8dd (diff) |
Git: Better error output when gitk cannot be launched
Error messages should stand out and not be hidden within
other output.
Before it looked like this (with the last sentence in red):
```
13:24:54 Running in "/home/user/project": /usr/bin/gitk .
Cannot launch "/usr/bin/gitk".
13:24:54 Running in "/home/user/project": /cmd/gitk .
Cannot launch "/cmd/gitk".Cannot launch "gitk".
```
and now like this (also last sentence in red):
```
13:28:07 Running in "/home/user/project": /usr/bin/gitk .
Cannot launch "/usr/bin/gitk".
13:28:07 Running in "/home/user/project": /cmd/gitk .
Cannot launch "/cmd/gitk".
Cannot launch "gitk".
```
Change-Id: If165a0a2ad800fde27c7252cf8af924c55b60197
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
-rw-r--r-- | src/plugins/vcsbase/vcsoutputwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/vcsbase/vcsoutputwindow.cpp b/src/plugins/vcsbase/vcsoutputwindow.cpp index 10b0ace71ac..6c71615f5d6 100644 --- a/src/plugins/vcsbase/vcsoutputwindow.cpp +++ b/src/plugins/vcsbase/vcsoutputwindow.cpp @@ -386,7 +386,7 @@ void VcsOutputWindow::setData(const QByteArray &data) void VcsOutputWindow::appendSilently(const QString &text) { - append(text, None, true); + append((text.endsWith('\n') || text.endsWith('\r')) ? text : text + '\n', None, true); } void VcsOutputWindow::append(const QString &text, MessageStyle style, bool silently) |