config: create initial config when exception happens

This commit is contained in:
Hylke Bons 2011-09-20 19:09:43 +01:00
parent e5948745ee
commit 8ba23a6d11

View file

@ -67,7 +67,10 @@ namespace SparkleLib {
try {
Load (FullPath);
} catch (FileNotFoundException) {
} catch (TypeInitializationException) {
CreateInitialConfig ();
} catch (FileException) {
CreateInitialConfig ();
} catch (XmlException) {
@ -79,7 +82,7 @@ namespace SparkleLib {
CreateInitialConfig ();
} else {
throw new XmlException (FullPath + " does not contain a valid SparkleShare XML tree.");
throw new XmlException (FullPath + " does not contain a valid SparkleShare XML structure.");
}
} finally {