mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 00:48:59 +02:00
show the whole path in "missing mod.nu" errors (#10416)
This commit is contained in:
@ -1943,7 +1943,10 @@ pub fn parse_module_file_or_dir(
|
||||
let mod_nu_path = module_path.clone().join("mod.nu");
|
||||
|
||||
if !(mod_nu_path.exists() && mod_nu_path.is_file()) {
|
||||
working_set.error(ParseError::ModuleMissingModNuFile(path_span));
|
||||
working_set.error(ParseError::ModuleMissingModNuFile(
|
||||
module_path.path().to_string_lossy().to_string(),
|
||||
path_span,
|
||||
));
|
||||
return None;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user