[Liblas-commits] hg: put out a nicer error mssg
liblas-commits at liblas.org
liblas-commits at liblas.org
Fri Jun 24 19:56:25 EDT 2011
details: http://hg.liblas.orghg/rev/70d5a87b9c34
changeset: 3019:70d5a87b9c34
user: Michael P. Gerlek <mpg at flaxen.com>
date: Fri Jun 24 16:56:19 2011 -0700
description:
put out a nicer error mssg
diffstat:
src/detail/reader/zipreader.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 7568a5a13c93 -r 70d5a87b9c34 src/detail/reader/zipreader.cpp
--- a/src/detail/reader/zipreader.cpp Fri Jun 24 16:53:55 2011 -0700
+++ b/src/detail/reader/zipreader.cpp Fri Jun 24 16:56:19 2011 -0700
@@ -147,7 +147,7 @@
{
std::ostringstream oss;
const char* err = m_zip->get_error();
- if (err==NULL) err="";
+ if (err==NULL) err="(unknown error)";
oss << "Failed to open LASzip stream: " << std::string(err);
throw liblas_error(oss.str());
}
More information about the Liblas-commits
mailing list