Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fix command error check

Bill Morgan7cba76228e0d
diff --git a/scripts/main.py b/scripts/main.py
index 17385bf339..d36f979f67 100644
--- a/scripts/main.py
+++ b/scripts/main.py
@@ -358,7 +358,7 @@ while True:
f"COMMAND = {Fore.CYAN}{command_name}{Style.RESET_ALL} ARGUMENTS = {Fore.CYAN}{arguments}{Style.RESET_ALL}")
# Execute command
- if command_name.lower() == "error":
+ if command_name.lower().startswith( "error" ):
result = f"Command {command_name} threw the following error: " + arguments
elif command_name == "human_feedback":
result = f"Human feedback: {user_input}"