diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-17 19:42:29 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-17 19:42:29 -0500 |
commit | 8249b28bea29e8ce17eac12776a60ec3f9e47176 (patch) | |
tree | 98318d7564b5f618cfb59e23cc6b918fcab88ee8 /test/test_directory.cpp | |
parent | b32e83ece42cec5aa9dee370bcdf349d23dbc8ba (diff) |
Rename InvalidInput to ArgumentInvalid.
Diffstat (limited to 'test/test_directory.cpp')
-rw-r--r-- | test/test_directory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |