From 3c80e05e0052c1f06b29a5b5ff4f518283382812 Mon Sep 17 00:00:00 2001 From: Boostrix <119627414+Boostrix@users.noreply.github.com> Date: Tue, 16 May 2023 01:26:13 +0200 Subject: [PATCH] Improve error message by providing the name of the env file (#3964) Co-authored-by: k-boikov <64261260+k-boikov@users.noreply.github.com> --- autogpt/commands/execute_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt/commands/execute_code.py b/autogpt/commands/execute_code.py index 6b141dba9..af7f70bc3 100644 --- a/autogpt/commands/execute_code.py +++ b/autogpt/commands/execute_code.py @@ -104,7 +104,7 @@ def execute_python_file(filename: str) -> str: CFG.execute_local_commands, "You are not allowed to run local shell commands. To execute" " shell commands, EXECUTE_LOCAL_COMMANDS must be set to 'True' " - "in your config. Do not attempt to bypass the restriction.", + "in your config file: .env - do not attempt to bypass the restriction.", ) def execute_shell(command_line: str) -> str: """Execute a shell command and return the output