cli: Print newline after request (in error case)

This commit is contained in:
Martchus 2017-09-26 15:44:07 +02:00
parent 044f20343c
commit 69ce6fee21
1 changed files with 3 additions and 2 deletions

View File

@ -215,11 +215,12 @@ void Application::handleError(
cerr << message.toLocal8Bit().data() << Phrases::End;
const QUrl url(request.url());
if (!url.isEmpty()) {
cerr << "\nRequest: " << url.toString(QUrl::PrettyDecoded).toLocal8Bit().data();
cerr << "\nRequest: " << url.toString(QUrl::PrettyDecoded).toLocal8Bit().data() << '\n';
}
if (!response.isEmpty()) {
cerr << "\nResponse:\n" << response.data() << endl;
cerr << "\nResponse:\n" << response.data() << '\n';
}
cerr << flush;
QCoreApplication::exit(-3);
}