summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-13 22:02:28 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-14 16:42:29 +0100
commit440083af872da43c116c5374d8e1511cef65abf2 (patch)
treee53f1869018313b766220c177b681a4718da013c /rbutil
parentaaa9a2cceedf45b04a85b206cd622a6fb1d9da77 (diff)
downloadrockbox-440083af872da43c116c5374d8e1511cef65abf2.tar.gz
rockbox-440083af872da43c116c5374d8e1511cef65abf2.tar.bz2
rockbox-440083af872da43c116c5374d8e1511cef65abf2.zip
rbutil: Show HTTP error string on download failure.
Also show the error string, which usually is more helpful than just showing the HTTP error code. Change-Id: I0652d240147c0f64a7a9ea58765af9eb197a03b1
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/base/zipinstaller.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/zipinstaller.cpp b/rbutil/rbutilqt/base/zipinstaller.cpp
index 6c111a314d..4bce1e5a25 100644
--- a/rbutil/rbutilqt/base/zipinstaller.cpp
+++ b/rbutil/rbutilqt/base/zipinstaller.cpp
@@ -110,8 +110,9 @@ void ZipInstaller::downloadDone(bool error)
emit logProgress(1, 1);
if(m_getter->httpResponse() != 200 && !m_getter->isCached()) {
- emit logItem(tr("Download error: received HTTP error %1.")
- .arg(m_getter->httpResponse()),LOGERROR);
+ emit logItem(tr("Download error: received HTTP error %1\n%2")
+ .arg(m_getter->httpResponse()).arg(m_getter->errorString()),
+ LOGERROR);
emit done(true);
return;
}