mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -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);
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue