Improve network error messages (#4704)
This commit is contained in:
@@ -128,8 +128,8 @@ void Updates::installUpdates()
|
||||
auto *box = new QMessageBox(
|
||||
QMessageBox::Information, "Chatterino Update",
|
||||
QStringLiteral("The update couldn't be downloaded "
|
||||
"(HTTP status %1).")
|
||||
.arg(result.status()));
|
||||
"(Error: %1).")
|
||||
.arg(result.formatError()));
|
||||
box->setAttribute(Qt::WA_DeleteOnClose);
|
||||
box->exec();
|
||||
return Failure;
|
||||
@@ -189,8 +189,8 @@ void Updates::installUpdates()
|
||||
auto *box = new QMessageBox(
|
||||
QMessageBox::Information, "Chatterino Update",
|
||||
QStringLiteral("The update couldn't be downloaded "
|
||||
"(HTTP status %1).")
|
||||
.arg(result.status()));
|
||||
"(Error: %1).")
|
||||
.arg(result.formatError()));
|
||||
box->setAttribute(Qt::WA_DeleteOnClose);
|
||||
box->exec();
|
||||
return Failure;
|
||||
|
||||
Reference in New Issue
Block a user