config: catch IOException, FileException does not exist
This commit is contained in:
parent
aba2595913
commit
87e6fc56a0
|
@ -70,7 +70,7 @@ namespace SparkleLib {
|
||||||
} catch (TypeInitializationException) {
|
} catch (TypeInitializationException) {
|
||||||
CreateInitialConfig ();
|
CreateInitialConfig ();
|
||||||
|
|
||||||
} catch (FileException) {
|
} catch (IOException) {
|
||||||
CreateInitialConfig ();
|
CreateInitialConfig ();
|
||||||
|
|
||||||
} catch (XmlException) {
|
} catch (XmlException) {
|
||||||
|
@ -82,7 +82,7 @@ namespace SparkleLib {
|
||||||
CreateInitialConfig ();
|
CreateInitialConfig ();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
throw new XmlException (FullPath + " does not contain a valid SparkleShare XML structure.");
|
throw new XmlException (FullPath + " does not contain a valid config XML structure.");
|
||||||
}
|
}
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in a new issue