]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- work on error handling 60/head
authorArvin Schnell <aschnell@suse.de>
Wed, 2 Apr 2014 10:17:45 +0000 (12:17 +0200)
committerArvin Schnell <aschnell@suse.de>
Wed, 2 Apr 2014 10:17:45 +0000 (12:17 +0200)
snapper/Btrfs.cc

index 695bd662fd7e32bfda3406449a648b6c10af5ba8..0d0d9e0036922a2017c7e3017bd44c98ea1e0736 100644 (file)
@@ -1242,7 +1242,10 @@ namespace snapper
 
            Regex rx("^.snapshots/([0-9]*)/snapshot");
            if (!rx.match(name))
+           {
+               y2err("get default failed, strange name");
                throw IOErrorException();
+           }
 
            int num = 0;
            rx.cap(1) >> num;
@@ -1250,6 +1253,7 @@ namespace snapper
        }
        catch (const runtime_error& e)
        {
+           y2err("get default failed, " << e.what());
            throw IOErrorException();
        }
     }
@@ -1277,6 +1281,7 @@ namespace snapper
        }
        catch (const runtime_error& e)
        {
+           y2err("set default failed, " << e.what());
            throw IOErrorException();
        }
     }