30 std::ifstream schema_stream( aSchemaFile.GetFullPath().fn_str() );
31 nlohmann::json schema;
35 schema_stream >> schema;
38 catch( std::exception& e )
40 if( !aSchemaFile.FileExists() )
42 wxLogError( wxString::Format(
_(
"schema file '%s' not found" ),
43 aSchemaFile.GetFullPath() ) );
47 wxLogError( wxString::Format(
_(
"Error loading schema: %s" ), e.what() ) );