mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 21:55:10 -05:00
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
This commit is contained in:
parent
aaa9a2ccee
commit
440083af87
1 changed files with 3 additions and 2 deletions
|
|
@ -110,8 +110,9 @@ void ZipInstaller::downloadDone(bool error)
|
||||||
|
|
||||||
emit logProgress(1, 1);
|
emit logProgress(1, 1);
|
||||||
if(m_getter->httpResponse() != 200 && !m_getter->isCached()) {
|
if(m_getter->httpResponse() != 200 && !m_getter->isCached()) {
|
||||||
emit logItem(tr("Download error: received HTTP error %1.")
|
emit logItem(tr("Download error: received HTTP error %1\n%2")
|
||||||
.arg(m_getter->httpResponse()),LOGERROR);
|
.arg(m_getter->httpResponse()).arg(m_getter->errorString()),
|
||||||
|
LOGERROR);
|
||||||
emit done(true);
|
emit done(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue