Show full backtrace if build hook panics
This commit is contained in:
parent
28eca6460d
commit
3cb4c6dbe0
|
@ -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(),
|
||||||
|
|
Loading…
Reference in a new issue