mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-05 17:44:52 +01:00
GZip: improve file open error message
This commit is contained in:
parent
d9af9cbc9d
commit
f0c08f78e0
1 changed files with 4 additions and 1 deletions
|
@ -39,7 +39,10 @@ std::vector<uint8_t> readGZip(const char *filename) {
|
|||
|
||||
gzFile f = gzopen(filename, "rb");
|
||||
if (!f)
|
||||
throw std::system_error(errno, std::generic_category(), "unable to open GZip file");
|
||||
throw std::system_error(
|
||||
errno, std::generic_category(),
|
||||
(std::string("unable to open file ") + filename).c_str()
|
||||
);
|
||||
|
||||
while (true) {
|
||||
if ((buffer.size() - len) < 4096)
|
||||
|
|
Loading…
Add table
Reference in a new issue