diff --git a/src/python.rs b/src/python.rs index 87977d2..40a4bf5 100644 --- a/src/python.rs +++ b/src/python.rs @@ -36,6 +36,6 @@ pub fn start(args: String) -> PyResult<()> { fn get_code(path: &str) -> String { return fs::read_to_string(path) - .expect("Failed to read Python file.") + .expect(&format!("Failed to read Python file.\nPath: {}", path)) .to_string(); -} \ No newline at end of file +}