Skip to content

Commit 66d438d

Browse files
committed
error messages
1 parent 2482bd2 commit 66d438d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ impl OntoEnv {
238238
if path.is_none() && root == "." && !recreate && !temporary {
239239
// Use forward slashes for cross-platform compatibility in error messages
240240
return Err(PyValueError::new_err(
241-
"You must provide a valid path or set recreate=True or temporary=True to create a new OntoEnv.",
241+
"OntoEnv directory not found at \"./.ontoenv\". You must provide a valid path or set recreate=True or temporary=True to create a new OntoEnv.",
242242
));
243243
}
244244
let mut root_path = path.clone().unwrap_or_else(|| PathBuf::from(root));

python/tests/test_ontoenv_init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test_init_no_config_no_path_error(self):
7575
os.remove(".ontoenv")
7676
else:
7777
shutil.rmtree(".ontoenv")
78-
with self.assertRaisesRegex(ValueError, "You must provide a valid path or set recreate=True or temporary=True to create a new OntoEnv."):
78+
with self.assertRaisesRegex(ValueError, "OntoEnv directory not found at \"./.ontoenv\". You must provide a valid path or set recreate=True or temporary=True to create a new OntoEnv."):
7979
OntoEnv() # No args
8080

8181
def test_init_path_no_env_error(self):

0 commit comments

Comments
 (0)