Show full backtrace if build hook panics

This commit is contained in:
Cole Helbling 2024-01-18 14:20:57 -08:00
parent 28eca6460d
commit 3cb4c6dbe0

View file

@ -235,7 +235,7 @@ async fn main_cli() {
.expect("Creating a temporary file"); .expect("Creating a temporary file");
file.write_all( file.write_all(
format!( format!(
"#! /bin/sh\nexec {} --server {}\n", "#! /bin/sh\nexec env RUST_BACKTRACE=full {} --server {}\n",
std::env::current_exe() std::env::current_exe()
.expect("Getting the path of magic-nix-cache") .expect("Getting the path of magic-nix-cache")
.display(), .display(),