Updater:Mac: Show tar stderr if it fails

This commit is contained in:
TellowKrinkle authored and TellowKrinkle committed 2023-11-04 02:24:51 -05:00
1 parent e9afe396b0
commit 4fcbee9594
1 file changed
+3 -1
+3 -1
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;
}