commit: ce0a9d624520f7e9b5a115ed28b719cea7571c67
parent c243707acbc1c030fed12db7302f71fb1f38af4d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 4 Jun 2022 20:17:07 +0200
Fix error formatting: fmt::errorln → fmt::errorfln
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/main.ha b/main.ha
@@ -106,11 +106,11 @@ fn check_dir(dirname: str, ignoring: bool) (void | errors::invalid) = {
case let b: bool =>
yield b;
case let err: fs::error =>
- fmt::errorln("Error opening {}: {}",
+ fmt::errorfln("Error opening {}: {}",
filename, fs::strerror(err))!;
continue;
case let err: io::error =>
- fmt::errorln("Error reading {}: {}",
+ fmt::errorfln("Error reading {}: {}",
filename, io::strerror(err))!;
continue;
};