Skip to content

Commit

Permalink
Part of #19608: improve error reporting of zip command failure (#19672)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayjay300 committed Mar 22, 2023
1 parent 614997b commit 3916221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contributors.md
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/openrct2/core/Zip.cpp
Expand Up @@ -181,7 +181,7 @@ class ZipArchive final : public IZipArchive
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)));
}
}

Expand Down

0 comments on commit 3916221

Please sign in to comment.