[Liblas-commits] hg: error checkthe error string
liblas-commits at liblas.org
liblas-commits at liblas.org
Fri Jun 24 19:54:02 EDT 2011
details: http://hg.liblas.orghg/rev/7568a5a13c93
changeset: 3018:7568a5a13c93
user: Michael P. Gerlek <mpg at flaxen.com>
date: Fri Jun 24 16:53:55 2011 -0700
description:
error checkthe error string
diffstat:
src/detail/reader/zipreader.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r fef2b1b73755 -r 7568a5a13c93 src/detail/reader/zipreader.cpp
--- a/src/detail/reader/zipreader.cpp Fri Jun 24 16:05:17 2011 -0500
+++ b/src/detail/reader/zipreader.cpp Fri Jun 24 16:53:55 2011 -0700
@@ -146,7 +146,9 @@
if (!stat)
{
std::ostringstream oss;
- oss << "Failed to open LASzip stream: " << std::string(m_zip->get_error());
+ const char* err = m_zip->get_error();
+ if (err==NULL) err="";
+ oss << "Failed to open LASzip stream: " << std::string(err);
throw liblas_error(oss.str());
}
}
More information about the Liblas-commits
mailing list