From 4fcbee9594ecb383a175594ea3bbc7cddadf9b29 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Sat, 4 Nov 2023 01:46:27 -0500 Subject: [PATCH] Updater:Mac: Show tar stderr if it fails --- pcsx2-qt/AutoUpdaterDialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcsx2-qt/AutoUpdaterDialog.cpp b/pcsx2-qt/AutoUpdaterDialog.cpp index 98ec18c00f78d..c7c0b0d5ee4a9 100644 --- a/pcsx2-qt/AutoUpdaterDialog.cpp +++ b/pcsx2-qt/AutoUpdaterDialog.cpp @@ -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; }