From 1a5c46705dd728d22807453a79e6574005580248 Mon Sep 17 00:00:00 2001 From: Arvin Schnell Date: Wed, 22 Feb 2023 12:47:12 +0100 Subject: [PATCH] improve error logging --- snapper/Snapper.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/snapper/Snapper.cc b/snapper/Snapper.cc index 3d8b4371..e76977b2 100644 --- a/snapper/Snapper.cc +++ b/snapper/Snapper.cc @@ -851,8 +851,15 @@ namespace snapper // Tests have shown that without a rescan and sync here the quota data // is incorrect. - quota_rescan(general_dir.fd()); - sync(general_dir.fd()); + try + { + quota_rescan(general_dir.fd()); + sync(general_dir.fd()); + } + catch (...) + { + SN_THROW(QuotaException("quota rescan or sync failed")); + } QuotaData quota_data; -- 2.47.3