From 146566267774959f2707148f8fd67909a7e9808c Mon Sep 17 00:00:00 2001 From: Young-Flash Date: Thu, 31 Oct 2024 10:52:41 +0800 Subject: [PATCH] fix missing src path when reporting pkg can't import (#434) --- crates/moonutil/src/module.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/moonutil/src/module.rs b/crates/moonutil/src/module.rs index c520e3bc..a7d91dd2 100644 --- a/crates/moonutil/src/module.rs +++ b/crates/moonutil/src/module.rs @@ -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(), @@ -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(),