From b2e584773e1db3d0a08dab7dfd0bb10a3490e5cc Mon Sep 17 00:00:00 2001 From: gstellenberg Date: Thu, 29 Oct 2009 00:03:06 -0500 Subject: [PATCH] Commented out exception handling code since yaml-cpp.0.2.4 doesn't compile it. --- examples/pinproctest/pinproctest.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/pinproctest/pinproctest.cpp b/examples/pinproctest/pinproctest.cpp index 49ef61d..521a642 100644 --- a/examples/pinproctest/pinproctest.cpp +++ b/examples/pinproctest/pinproctest.cpp @@ -53,16 +53,16 @@ PRResult LoadConfiguration(YAML::Node& yamlDoc, const char *yamlFilePath) parser.GetNextDocument(yamlDoc); } } - catch (YAML::ParserException& ex) - { - fprintf(stderr, "YAML parse error at line=%d col=%d: %s\n", ex.line, ex.column, ex.msg.c_str()); - return kPRFailure; - } - catch (YAML::RepresentationException& ex) - { - fprintf(stderr, "YAML representation error at line=%d col=%d: %s\n", ex.line, ex.column, ex.msg.c_str()); - return kPRFailure; - } +// catch (YAML::ParserException& ex) +// { +// fprintf(stderr, "YAML parse error at line=%d col=%d: %s\n", ex.line, ex.column, ex.msg.c_str()); + // return kPRFailure; +// } +// catch (YAML::RepresentationException& ex) +// { +// fprintf(stderr, "YAML representation error at line=%d col=%d: %s\n", ex.line, ex.column, ex.msg.c_str()); +// return kPRFailure; +// } catch (...) { fprintf(stderr, "Unexpected exception while parsing YAML config.\n");