diff options
author | kh1 <karsten.heimrich@nokia.com> | 2012-02-24 10:24:04 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@nokia.com> | 2012-02-24 12:51:10 +0100 |
commit | ab7fca0cfa59883b20e6b2d1e0b772b03106b216 (patch) | |
tree | d404bafecb31620219cec0cf8c3fa9981583c371 /installerbuilder/libinstaller/3rdparty/kdtools/kdupdaterfiledownloader.cpp | |
parent | c1f159e6dc85a1b9a0b63ec5e2fd99a722ddfda3 (diff) |
Be more verbose about the file we fail. Adapt punctuation.
Change-Id: I88d8616757513ea14fbaa78a707f00095db16629
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
Diffstat (limited to 'installerbuilder/libinstaller/3rdparty/kdtools/kdupdaterfiledownloader.cpp')
-rw-r--r-- | installerbuilder/libinstaller/3rdparty/kdtools/kdupdaterfiledownloader.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/installerbuilder/libinstaller/3rdparty/kdtools/kdupdaterfiledownloader.cpp b/installerbuilder/libinstaller/3rdparty/kdtools/kdupdaterfiledownloader.cpp index a9f042af0..0a3fc4564 100644 --- a/installerbuilder/libinstaller/3rdparty/kdtools/kdupdaterfiledownloader.cpp +++ b/installerbuilder/libinstaller/3rdparty/kdtools/kdupdaterfiledownloader.cpp @@ -594,7 +594,8 @@ void KDUpdater::LocalFileDownloader::doDownload() d->source = new QFile(localFile, this); if (!d->source->open(QFile::ReadOnly)) { onError(); - setDownloadAborted(tr("Cannot open source file for reading.")); + setDownloadAborted(tr("Cannot open source file '%1' for reading.").arg(QFileInfo(localFile) + .fileName())); return; } @@ -609,7 +610,8 @@ void KDUpdater::LocalFileDownloader::doDownload() if (!d->destination->isOpen()) { onError(); - setDownloadAborted(tr("Cannot open destination file for writing.")); + setDownloadAborted(tr("Cannot open destination file '%1' for writing.") + .arg(QFileInfo(d->destination->fileName()).fileName())); return; } |