more precise error message for missing lock in bun

This commit is contained in:
Ruben Fiszel
2023-08-24 14:57:34 +02:00
parent 7e3e0b709c
commit 5bf647933d
+1 -2
View File
@@ -180,8 +180,7 @@ pub async fn handle_bun_job(
let splitted = reqs.split(BUN_LOCKB_SPLIT).collect::<Vec<&str>>();
if splitted.len() != 2 {
return Err(error::Error::ExecutionErr(
"Invalid requirements, expectd to find //bun.lockb split pattern in reqs"
.to_string(),
format!("Invalid requirements, expectd to find //bun.lockb split pattern in reqs. Found: |{reqs}|")
));
}
let _ = write_file(job_dir, "package.json", &splitted[0]).await?;