mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-15 18:50:32 +01:00
Updater:Mac: Show tar stderr if it fails
This commit is contained in:
1 parent
e9afe396b0
commit
4fcbee9594
1 file changed
+3
-1
@@ -789,7 +789,9 @@ bool AutoUpdaterDialog::processUpdate(const QByteArray& update_data, QProgressDi
|
||||
progress.setValue(progress.maximum());
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user