From 87e6fc56a0d5f32e26adcca2a9858a537d8518b5 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 22 Sep 2011 12:24:33 +0100 Subject: [PATCH] config: catch IOException, FileException does not exist --- SparkleLib/SparkleConfig.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SparkleLib/SparkleConfig.cs b/SparkleLib/SparkleConfig.cs index 0549e9a7..7e5acec3 100644 --- a/SparkleLib/SparkleConfig.cs +++ b/SparkleLib/SparkleConfig.cs @@ -70,7 +70,7 @@ namespace SparkleLib { } catch (TypeInitializationException) { CreateInitialConfig (); - } catch (FileException) { + } catch (IOException) { CreateInitialConfig (); } catch (XmlException) { @@ -82,7 +82,7 @@ namespace SparkleLib { CreateInitialConfig (); } 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 {