From 995823a723e3b289e75c38b762bbb2e60a081d2c Mon Sep 17 00:00:00 2001 From: Arvin Schnell Date: Wed, 2 Apr 2014 12:17:45 +0200 Subject: [PATCH] - work on error handling --- snapper/Btrfs.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snapper/Btrfs.cc b/snapper/Btrfs.cc index 695bd662..0d0d9e00 100644 --- a/snapper/Btrfs.cc +++ b/snapper/Btrfs.cc @@ -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(); } } -- 2.47.3