]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- abort if loading config failed
authorArvin Schnell <aschnell@suse.de>
Thu, 3 Mar 2011 14:41:03 +0000 (15:41 +0100)
committerArvin Schnell <aschnell@suse.de>
Thu, 3 Mar 2011 14:41:03 +0000 (15:41 +0100)
snapper/AsciiFile.cc

index 48b0a60e80b47d8eda26909523aaf842d5f0b441..74f69c3f15b80ef05ee62a2ada0e3ee206e1b701 100644 (file)
@@ -66,6 +66,9 @@ AsciiFile::reload()
     classic(File_Ci);
     string Line_Ci;
 
+    if (!File_Ci.good())
+       throw;
+
     bool Ret_bi = File_Ci.good();
     File_Ci.unsetf(ifstream::skipws);
     getline( File_Ci, Line_Ci );