logo

deblob

remove binary executables from a directory git clone https://hacktivis.me/git/deblob.git
commit: d657bb96551c08cf057823d82660b9a0b2a282e0
parent cc632e47a371eab73da6b2637a4cba7bda37d0cd
Author: Sebastian <sebastian@sebsite.pw>
Date:   Thu,  5 May 2022 17:58:03 -0400

Replace fmt::fatal with fmt::fatalf

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:

Mmain.ha8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/main.ha b/main.ha @@ -54,7 +54,7 @@ fn is_blob(filename: str) (bool | fs::error | io::error) = { for (let i = 0z; i < len(tests); i += 1) { const result = is_blob(tests[i].0)!; if (result != tests[i].1) { - fmt::fatal("is_blob({}) was incorrect, got {}, expected {}", + fmt::fatalf("is_blob({}) was incorrect, got {}, expected {}", tests[i].0, result, tests[i].1); }; }; @@ -152,7 +152,7 @@ fn check_dir(dirname: str, ignoring: bool) (void | errors::invalid) = { case let d: []fs::dirent => yield d; case let e: fs::error => - fmt::fatal("os::readdir({}): {}", dirname, fs::strerror(e)); + fmt::fatalf("os::readdir({}): {}", dirname, fs::strerror(e)); }; const ret = check_dir(dirname, false); @@ -162,7 +162,7 @@ fn check_dir(dirname: str, ignoring: bool) (void | errors::invalid) = { case let d: []fs::dirent => yield d; case let e: fs::error => - fmt::fatal("os::readdir({}): {}", dirname, fs::strerror(e)); + fmt::fatalf("os::readdir({}): {}", dirname, fs::strerror(e)); }; assert(len(files_after) == 5); @@ -187,7 +187,7 @@ export fn main() void = { case 'd' => match (os::chdir(opt.1)) { case let e: fs::error => - fmt::fatal("os::chdir({}): {}", + fmt::fatalf("os::chdir({}): {}", opt.1, fs::strerror(e)); case void => void;