diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index e527be4..7403a2f 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,14 +4,13 @@
-
+
+
+
+
-
-
-
+
-
-
@@ -43,24 +42,24 @@
- {
- "keyToString": {
- "ASKED_ADD_EXTERNAL_FILES": "true",
- "RunOnceActivity.OpenProjectViewOnStart": "true",
- "RunOnceActivity.ShowReadmeOnStart": "true",
- "WebServerToolWindowFactoryState": "false",
- "last_opened_file_path": "E:/code/user_app",
- "node.js.detected.package.eslint": "true",
- "node.js.detected.package.tslint": "true",
- "node.js.selected.package.eslint": "(autodetect)",
- "node.js.selected.package.tslint": "(autodetect)",
- "nodejs_package_manager_path": "npm",
- "project.structure.last.edited": "Project",
- "project.structure.proportion": "0.0",
- "project.structure.side.proportion": "0.0",
- "settings.editor.selected.configurable": "preferences.pluginManager"
+
+}]]>
@@ -72,6 +71,7 @@
+
@@ -102,6 +102,11 @@
+
+
+
+
+
@@ -149,13 +154,6 @@
-
- 1676401780823
-
-
-
- 1676401780823
-
1676412932800
@@ -492,7 +490,14 @@
1679327290349
-
+
+ 1679329415417
+
+
+
+ 1679329415417
+
+
@@ -503,7 +508,19 @@
@@ -511,7 +528,6 @@
-
@@ -536,6 +552,7 @@
-
+
+
\ No newline at end of file
diff --git a/src/main/java/client/ui/ConsoleUI.java b/src/main/java/client/ui/ConsoleUI.java
index 020c7e0..ab94250 100644
--- a/src/main/java/client/ui/ConsoleUI.java
+++ b/src/main/java/client/ui/ConsoleUI.java
@@ -1,5 +1,6 @@
package client.ui;
+import server.exception.CommandException;
import server.services.BuilderType;
import server.services.CommandExecutor;
@@ -8,6 +9,8 @@
import java.io.InputStreamReader;
import java.util.Objects;
+import static client.ui.ConsoleColors.error;
+
/**
* The type Console ui.
*/
@@ -34,7 +37,7 @@ public void start() {
String command;
try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
- while (!Objects.equals(command = reader.readLine(), "exit")) {
+ while (!Objects.equals(command = reader.readLine(), "exit") && !Objects.equals(command, null)) {
executor.executeCommand(command, reader, null, BuilderType.CMD);
}
} catch (IOException e) {
diff --git a/src/main/java/server/services/CommandExecutor.java b/src/main/java/server/services/CommandExecutor.java
index 8ac1ce7..2d87a04 100644
--- a/src/main/java/server/services/CommandExecutor.java
+++ b/src/main/java/server/services/CommandExecutor.java
@@ -4,6 +4,7 @@
import server.controller.HumanControllerImpl;
import server.exception.ApplicationException;
import server.exception.ArgumentException;
+import server.exception.CommandException;
import server.model.dto.HumanBeingRequestDTO;
import server.services.builders.HumanBeingRequestDTOBuilder;
@@ -80,6 +81,7 @@ private void executeScript(String scriptName, BufferedReader reader) {
public void executeCommand(String command, BufferedReader reader, BufferedReader reader2, BuilderType builderType) {
long id;
try {
+ System.out.println(command);
String[] compositeCommand = command.split(" ");
history.addCommandToHistory(compositeCommand[0]);
if (compositeCommand.length > 1) {