From: Arvin Schnell Date: Wed, 22 Feb 2023 11:47:12 +0000 (+0100) Subject: improve error logging X-Git-Tag: v0.10.5~35^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F789%2Fhead;p=thirdparty%2Fsnapper.git improve error logging --- 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;