Preventing another Exception in the logs...

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1739 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-04-02 14:04:08 +00:00
parent 48ef5ca0c9
commit df65e846d7

View file

@ -258,6 +258,10 @@ namespace GreenshotPlugin.Core {
}
languageDirectories.Add(STARTUP_LANGUAGE_PATH);
foreach(string path in languageDirectories) {
if (!Directory.Exists(path)) {
LOG.InfoFormat("Skipping non existing language path {0}", path);
continue;
}
// Search in executable directory
LOG.InfoFormat("Searching language directory '{0}' for language files with pattern '{1}'", path, languageFilePattern);
try {