Skip to content

Commit

Permalink
feat(ui): provide more information for download errors
Browse files Browse the repository at this point in the history
References #1088.
  • Loading branch information
trollixx committed Apr 9, 2019
1 parent 5362fc0 commit 4415920
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libs/ui/docsetsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,10 @@ void DocsetsDialog::downloadCompleted()

if (reply->error() != QNetworkReply::NoError) {
if (reply->error() != QNetworkReply::OperationCanceledError) {
const int ret = QMessageBox::warning(this, QStringLiteral("Zeal"), reply->errorString(),
const QString msg = tr("Download failed!<br><br><b>Error:</b> %1<br><b>URL:</b> %2")
.arg(reply->errorString())
.arg(reply->request().url().toString());
const int ret = QMessageBox::warning(this, QStringLiteral("Zeal"), msg,
QMessageBox::Retry | QMessageBox::Default,
QMessageBox::Cancel | QMessageBox::Escape,
QMessageBox::NoButton);
Expand Down

0 comments on commit 4415920

Please sign in to comment.