From 4d779104fd0e061657407e22898df4c4fbc8c237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 26 Nov 2024 15:34:05 +0900 Subject: [PATCH] Fix more --- turbopack/crates/turbopack-env/src/try_env.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/turbopack/crates/turbopack-env/src/try_env.rs b/turbopack/crates/turbopack-env/src/try_env.rs index 61ef3f9d35b7a..7561d528ca813 100644 --- a/turbopack/crates/turbopack-env/src/try_env.rs +++ b/turbopack/crates/turbopack-env/src/try_env.rs @@ -20,7 +20,7 @@ impl TryDotenvProcessEnv { prior: ResolvedVc>, path: ResolvedVc, ) -> Result> { - let dotenv = DotenvProcessEnv::new(Some(prior), path) + let dotenv = DotenvProcessEnv::new(Some(*prior), *path) .to_resolved() .await?; Ok(TryDotenvProcessEnv { @@ -55,7 +55,8 @@ impl ProcessEnv for TryDotenvProcessEnv { // read_all_with_prior will wrap a current error with a context containing the // failing file, which we don't really care about (we report the filepath as the // Issue context, not the description). So extract the real error. - description: StyledString::Text(e.root_cause().to_string().into()).cell(), + description: StyledString::Text(e.root_cause().to_string().into()) + .resolved_cell(), } .cell() .emit();