mirror of https://github.com/PCSX2/pcsx2.git
Updater:Mac: Show tar stderr if it fails
This commit is contained in:
parent
e9afe396b0
commit
4fcbee9594
|
@ -789,7 +789,9 @@ bool AutoUpdaterDialog::processUpdate(const QByteArray& update_data, QProgressDi
|
||||||
progress.setValue(progress.maximum());
|
progress.setValue(progress.maximum());
|
||||||
if (untar.exitCode() != EXIT_SUCCESS)
|
if (untar.exitCode() != EXIT_SUCCESS)
|
||||||
{
|
{
|
||||||
reportError("Failed to unpack update (tar exited with %u)", untar.exitCode());
|
QByteArray msg = untar.readAllStandardError();
|
||||||
|
const char* join = msg.isEmpty() ? "" : ": ";
|
||||||
|
reportError("Failed to unpack update (tar exited with %u%s%s)", untar.exitCode(), join, msg.toStdString().c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue