Skip to content

Commit

Permalink
More error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
vlinkz committed Mar 3, 2024
1 parent 805e65e commit 0f41520
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ddb/nix.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::Store;
use log::{debug, info};
use log::{debug, error, info};
use serde::Deserialize;
use std::collections::HashMap;
use tokio::process::Command;
Expand All @@ -23,6 +23,10 @@ pub async fn get_store(rev: &str) -> HashMap<String, Store> {
.output()
.await
.expect("failed to execute process");
if !nixpath.status.success() {
error!("nix-instantiate failed: {}", String::from_utf8_lossy(&nixpath.stderr));
std::process::exit(1);
}
let nixpath = String::from_utf8_lossy(&nixpath.stdout).trim().to_string();
debug!("nixpath: {}", nixpath);

Expand Down

0 comments on commit 0f41520

Please sign in to comment.