Include exception details when parsing fails in external_schema example

This commit is contained in:
Tristan Penman 2015-10-13 13:04:14 +11:00
parent e21b31295f
commit 4f4f9cf81b

View File

@ -54,8 +54,8 @@ int main(int argc, char *argv[])
RapidJsonAdapter schemaDocumentAdapter(schemaDocument);
try {
parser.populateSchema(schemaDocumentAdapter, schema);
} catch (...) {
cerr << "Failed to parse schema." << endl;
} catch (std::exception &e) {
cerr << "Failed to parse schema: " << e.what() << endl;
return 1;
}