Skip to content

Commit

Permalink
fix missing src path when reporting pkg can't import
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Flash committed Oct 31, 2024
1 parent 85de20d commit c4ec405
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/moonutil/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ impl ModuleDB {
errors.push(format!(
"{}: cannot import internal package `{}` in `{}`",
self.source_dir
.join(self.source.as_ref().unwrap_or(&String::new()))
.join(pkg.rel.fs_full_name())
.join(MOON_PKG_JSON)
.display(),
Expand All @@ -296,6 +297,7 @@ impl ModuleDB {
errors.push(format!(
"{}: cannot import `{}` in `{}`, no such package",
self.source_dir
.join(self.source.as_ref().unwrap_or(&String::new()))
.join(pkg.rel.fs_full_name())
.join(MOON_PKG_JSON)
.display(),
Expand Down

0 comments on commit c4ec405

Please sign in to comment.