diff --git a/inc/FileSystem.hpp b/inc/FileSystem.hpp index f206a1a..bc31c5d 100644 --- a/inc/FileSystem.hpp +++ b/inc/FileSystem.hpp @@ -5,11 +5,12 @@ #include -// 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: diff --git a/src/FileSystem.cpp b/src/FileSystem.cpp index 0578898..b87474a 100644 --- a/src/FileSystem.cpp +++ b/src/FileSystem.cpp @@ -34,7 +34,7 @@ std::shared_ptr 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; } diff --git a/src/Interpreter.cpp b/src/Interpreter.cpp index c795832..cf31977 100644 --- a/src/Interpreter.cpp +++ b/src/Interpreter.cpp @@ -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; }