Updater:Mac: Show tar stderr if it fails

This commit is contained in:
TellowKrinkle 2023-11-04 01:46:27 -05:00 committed by TellowKrinkle
parent e9afe396b0
commit 4fcbee9594
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}