summaryrefslogtreecommitdiff
path: root/cli/tools/task.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-05-21 16:12:14 -0400
committerGitHub <noreply@github.com>2024-05-21 16:12:14 -0400
commit97956377240d71dadc7271d685c3a637c1e987e7 (patch)
tree94a69374ddd8b19bee30ea0b38c50883c56bcf05 /cli/tools/task.rs
parent625d09937ae88bfdaedb4d328bc59c001724e5d7 (diff)
fix(task): do not error if node_modules folder not exists (#23920)
Revealed https://github.com/denoland/deno/issues/23919 Closes #23914
Diffstat (limited to 'cli/tools/task.rs')
-rw-r--r--cli/tools/task.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/tools/task.rs b/cli/tools/task.rs
index 60867b768..3a30dd008 100644
--- a/cli/tools/task.rs
+++ b/cli/tools/task.rs
@@ -70,7 +70,8 @@ pub async fn execute_script(
bail!("Only local configuration files are supported")
};
let cwd = match task_flags.cwd {
- Some(path) => canonicalize_path(&PathBuf::from(path))?,
+ Some(path) => canonicalize_path(&PathBuf::from(path))
+ .context("failed canonicalizing --cwd")?,
None => config_file_path.parent().unwrap().to_owned(),
};