diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-11-09 16:34:29 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-11-09 16:39:24 +0100 |
| commit | a0e05db071aef5867248a02e4abbdb409fd4f2e5 (patch) | |
| tree | 9a87546e8ade7055d6d200cf278f48e359c4ca19 | |
| parent | pkgs/rollup: Check if the `--to` directory is actually writable (diff) | |
| download | nixos-config-a0e05db071aef5867248a02e4abbdb409fd4f2e5.zip | |
pkgs/rollup: Print stderr, if a git command fails
| -rw-r--r-- | pkgs/by-name/ro/rollup/src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/by-name/ro/rollup/src/main.rs b/pkgs/by-name/ro/rollup/src/main.rs index 069ed59b..08f18648 100644 --- a/pkgs/by-name/ro/rollup/src/main.rs +++ b/pkgs/by-name/ro/rollup/src/main.rs @@ -78,7 +78,11 @@ macro_rules! git { }; (@_handle_status $output:expr; $($args:expr),*) => {{ if !$output.status.success() { - bail!("{} failed!", git!(@_fmt_cmd $($args),*)) + bail!( + "{} failed!\n\nStderr was:\n {}", + git!(@_fmt_cmd $($args),*), + String::from_utf8($output.stderr).unwrap() + ) } if !$output.stderr.is_empty() { let stderr = String::from_utf8($output.stderr).expect("git should always produce utf8"); |
