1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-24 18:25:23 +01:00

Commented out exception handling code since yaml-cpp.0.2.4 doesn't compile it.

This commit is contained in:
gstellenberg
2009-10-29 00:03:06 -05:00
parent 6a0c819939
commit b2e584773e

View File

@@ -53,16 +53,16 @@ PRResult LoadConfiguration(YAML::Node& yamlDoc, const char *yamlFilePath)
parser.GetNextDocument(yamlDoc); parser.GetNextDocument(yamlDoc);
} }
} }
catch (YAML::ParserException& ex) // catch (YAML::ParserException& ex)
{ // {
fprintf(stderr, "YAML parse error at line=%d col=%d: %s\n", ex.line, ex.column, ex.msg.c_str()); // fprintf(stderr, "YAML parse error at line=%d col=%d: %s\n", ex.line, ex.column, ex.msg.c_str());
return kPRFailure; // return kPRFailure;
} // }
catch (YAML::RepresentationException& ex) // catch (YAML::RepresentationException& ex)
{ // {
fprintf(stderr, "YAML representation error at line=%d col=%d: %s\n", ex.line, ex.column, ex.msg.c_str()); // fprintf(stderr, "YAML representation error at line=%d col=%d: %s\n", ex.line, ex.column, ex.msg.c_str());
return kPRFailure; // return kPRFailure;
} // }
catch (...) catch (...)
{ {
fprintf(stderr, "Unexpected exception while parsing YAML config.\n"); fprintf(stderr, "Unexpected exception while parsing YAML config.\n");