This commit is contained in:
IlyaShurupov 2024-03-30 11:15:15 +03:00
parent 18309164e6
commit 7f1fa02ba3
3 changed files with 6 additions and 5 deletions

View file

@ -5,11 +5,12 @@
#include <sstream>
// in subtree links should be in-tree after copy operation
// use C:/ for root
// links have unique names
// tests
// links have unique names
// use C:/ for root
// copy operator exit if exists, do not rename
// clean-ups
// in subtree links should be in-tree after copy operation
class FileSystem {
public:

View file

@ -34,7 +34,7 @@ std::shared_ptr<Node> FileSystem::getNode(const Path& path, bool parent) {
bool FileSystem::changeCurrent(const Path& path) {
if (path.isInvalid()) {
gError = "Invalid path";
gError = "Path not found";
return false;
}

View file

@ -126,7 +126,7 @@ bool Interpreter::interpret(const std::string& command) {
}
if (iter->second.numArguments != words.size() - 1) {
reportError("invalid number of arguments given");
reportError("Invalid number of arguments given for: " + commandName);
return false;
}