From 7f1fa02ba32808044e77a79edb05665a87ccd987 Mon Sep 17 00:00:00 2001 From: IlyaShurupov Date: Sat, 30 Mar 2024 11:15:15 +0300 Subject: [PATCH] tmp --- inc/FileSystem.hpp | 7 ++++--- src/FileSystem.cpp | 2 +- src/Interpreter.cpp | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) 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; }