~ci-train-bot/ubuntu-download-manager/ubuntu-download-manager-ubuntu-yakkety-landing-027

« back to all changes in this revision

Viewing changes to src/downloads/priv/ubuntu/downloads/file_download.cpp

  • Committer: CI Train Bot
  • Author(s): Michael Sheldon
  • Date: 2016-03-22 16:24:30 UTC
  • mfrom: (352.3.1 fix-error-reporting)
  • Revision ID: ci-train-bot@canonical.com-20160322162430-pvj0qxandhav8w8a
Fix error reporting in download manager for network errors Fixes: #1555169

Show diffs side-by-side

added added

removed removed

Lines of Context:
537
537
            HttpErrorStruct err(status, msg);
538
538
            emit httpError(err);
539
539
            errStr = NETWORK_ERROR;
 
540
        } else {
 
541
            NetworkErrorStruct err(code, _reply->errorString());
 
542
            emit networkError(err);
540
543
        }
541
544
    } else {
542
545
        if (code == QNetworkReply::AuthenticationRequiredError) {