Compare commits
4
Commits
a9dddbcddc
...
2621418d3a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2621418d3a | ||
|
|
174b341bef | ||
|
|
df33713069 | ||
|
|
cde75530fe |
@@ -774,7 +774,7 @@ private:
|
||||
|
||||
if (!ok) {
|
||||
SG_LOG(SG_TERRASYNC, SG_WARN, "removal failed for:" << path);
|
||||
throw sg_io_exception("Failed to remove existing file/dir:", path);
|
||||
throw sg_io_exception("Failed to remove existing file/dir:", path, "", false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -48,9 +48,11 @@ static std::string gzErrorMessage(gzFile fd)
|
||||
|
||||
if (errNum == Z_ERRNO) {
|
||||
return simgear::strutils::error_string(errno);
|
||||
} else {
|
||||
} else if (gzMsg) {
|
||||
return {gzMsg};
|
||||
}
|
||||
|
||||
return {"GZError: no string code for code:" + std::to_string(errNum)};
|
||||
}
|
||||
|
||||
void sgReadChar ( gzFile fd, char *var )
|
||||
|
||||
Reference in New Issue
Block a user