From 8249b28bea29e8ce17eac12776a60ec3f9e47176 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Thu, 17 Oct 2024 19:42:29 -0500 Subject: Rename InvalidInput to ArgumentInvalid. --- test/test_directory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/test_directory.cpp') diff --git a/test/test_directory.cpp b/test/test_directory.cpp index c2af281..2f69dab 100644 --- a/test/test_directory.cpp +++ b/test/test_directory.cpp @@ -49,16 +49,16 @@ FudStatus removeRecursive(const String& path) return FudStatus::Utf8Invalid; } if (path.length() < 5) { - return FudStatus::InvalidInput; + return FudStatus::ArgumentInvalid; } auto prefix{String::makeFromCString("/tmp/").takeOkay()}; auto diffResult = compareMem(path.data(), path.length(), prefix.data(), prefix.length()); if (diffResult.isError()) { - return FudStatus::InvalidInput; + return FudStatus::ArgumentInvalid; } auto diff = diffResult.getOkay(); if (diff != 0) { - return FudStatus::InvalidInput; + return FudStatus::ArgumentInvalid; } constexpr int maxOpenFd = 64; auto status = nftw(path.c_str(), unlink_cb, maxOpenFd, FTW_DEPTH | FTW_PHYS); -- cgit v1.2.3