[Liblas-commits] hg-main-tree: more descriptive exception

liblas-commits at liblas.org liblas-commits at liblas.org
Mon Aug 8 14:39:42 EDT 2011


details:   http://hg.libpc.orghg-main-tree/rev/405a795accc7
changeset: 1028:405a795accc7
user:      Howard Butler <hobu.inc at gmail.com>
date:      Mon Aug 08 13:39:34 2011 -0500
description:
more descriptive exception

diffstat:

 include/pdal/Options.hpp |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r ce503949919f -r 405a795accc7 include/pdal/Options.hpp
--- a/include/pdal/Options.hpp	Mon Aug 08 13:12:09 2011 -0500
+++ b/include/pdal/Options.hpp	Mon Aug 08 13:39:34 2011 -0500
@@ -201,7 +201,9 @@
             }
             ++iter;
         }
-        throw option_not_found(name);
+        std::ostringstream oss;
+        oss << "Required option '" << name << "' was not found on this stage";
+        throw option_not_found(oss.str());
     }
 
     // get value of an option, or throw option_not_found if option not present


More information about the Liblas-commits mailing list