public List<string> Validate()
{
var errors = new List<string>();
try
{
ReadConfig(Path);
}
catch (FileNotFoundException)
{
errors.Add(String.Format(
"Can't find configuration file. Copy SampleConfig.json to {0} and fill in the blanks.",
Path));
}
catch (JsonReaderException)
{
errors.Add(String.Format(
"Can't parse the {0} configuration file. Ensure it is a valid JSON file.",
Path));
}
return errors;
}