Skip to content

Commit 8985c44

Browse files
committed
Fix missing warning
1 parent 2494deb commit 8985c44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/tools/venv_shim/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ fn find_venv_root() -> miette::Result<(PathBuf, PathBuf)> {
1515
let cfg = root.join(PYVENV);
1616
if cfg.exists() {
1717
return Ok((root, cfg));
18+
} else {
19+
eprintln!("Warning: $VIRTUAL_ENV is set but seems to be invalid; ignoring")
1820
}
19-
// FIXME: Else warn that the VIRTUAL_ENV is invalid before continuing
2021
}
2122

2223
if let Some(this) = args().next() {

0 commit comments

Comments
 (0)