From 2bfe843ea417c44b77025431a4bfe05dadba38f0 Mon Sep 17 00:00:00 2001 From: Freddie Vargus Date: Thu, 16 Oct 2025 15:17:16 -0400 Subject: [PATCH] ENH: Update error message for environment import failure Updated error message to include installation command for environment. I had to jump to the docs to know exactly what the command was, but I think having it directly in the error message would be more useful. --- verifiers/utils/env_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/verifiers/utils/env_utils.py b/verifiers/utils/env_utils.py index 89ecf643e..d2c1b36e8 100644 --- a/verifiers/utils/env_utils.py +++ b/verifiers/utils/env_utils.py @@ -77,7 +77,7 @@ def load_environment(env_id: str, **env_args) -> Environment: f"Failed to import environment module {module_name} for env_id {env_id}: {str(e)}" ) raise ValueError( - f"Could not import '{env_id}' environment. Ensure the package for the '{env_id}' environment is installed." + f"Could not import '{env_id}' environment. Ensure the package for the '{env_id}' environment is installed with `vf-install {env_id}`." ) from e except Exception as e: logger.error(