commit: ba5344b0496d98bb4e5adcb892d842d173fb46a8
parent 9e29df718ac921a2ce9f2666273140f641bad551
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 11 Apr 2024 06:47:53 +0200
Handle fs::error from fs::next
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/main.ha b/main.ha
@@ -245,6 +245,8 @@ fn check_dir(dirname: str) (void | errors::invalid) = {
const ent = match (fs::next(iter)) {
case let ent: fs::dirent =>
yield ent;
+ case let e: fs::error =>
+ fmt::errorfln("deblob: Filesystem error while reading directory '{}': {}", dirname, fs::strerror(e));
case void =>
break;
};