From 3916221cfb936708a0b42c64a14b4caa00d868f6 Mon Sep 17 00:00:00 2001 From: John Mulcahy Date: Wed, 22 Mar 2023 15:52:54 -0400 Subject: [PATCH] Part of #19608: improve error reporting of zip command failure (#19672) --- contributors.md | 2 +- src/openrct2/core/Zip.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contributors.md b/contributors.md index e99cbbb78e..012819beb6 100644 --- a/contributors.md +++ b/contributors.md @@ -213,7 +213,7 @@ The following people are not part of the development team, but have been contrib * Ernest Elgin (eaeiv) * Ernest Wong (ErnWong) * Joel H. (HtotheTML) - +* John Mulcahy (jayjay300) ## Toolchain * (Balletie) - macOS diff --git a/src/openrct2/core/Zip.cpp b/src/openrct2/core/Zip.cpp index 9ecae3aa20..fea5e7366f 100644 --- a/src/openrct2/core/Zip.cpp +++ b/src/openrct2/core/Zip.cpp @@ -181,7 +181,7 @@ public: if (res == -1) { zip_source_free(source); - throw std::runtime_error("Unable to set file contents."); + throw std::runtime_error(std::string(zip_strerror(_zip))); } }