From fc82cae0be82b3262e1bd22a76e5ad444629c3b4 Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Fri, 1 Nov 2024 14:32:42 +0100
Subject: [PATCH] Exclude from coverage hard-to-reach code

---
 src/utils/Filesystem.hpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/utils/Filesystem.hpp b/src/utils/Filesystem.hpp
index 63af52b2e..0f7434213 100644
--- a/src/utils/Filesystem.hpp
+++ b/src/utils/Filesystem.hpp
@@ -14,9 +14,11 @@ createDirectoryIfNeeded(const std::string& filename)
     try {
       std::filesystem::create_directories(path);
     }
+    // LCOV_EXCL_START
     catch (std::filesystem::filesystem_error& e) {
       throw NormalError(e.what());
     }
+    // LCOV_EXCL_STOP
   }
 }
 
-- 
GitLab