Skip to content

Commit

Permalink
add error context: Failed to run agama-autoyast
Browse files Browse the repository at this point in the history
encountered when trying to run something from a git checkout,
it probably works fine on our ISO
  • Loading branch information
mvidner authored and imobachgs committed Feb 12, 2025
1 parent bfbe159 commit 4493611
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust/agama-lib/src/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ impl AutoyastProfileImporter {
let tmp_dir = TempDir::with_prefix(TMP_DIR_PREFIX)?;
Command::new("agama-autoyast")
.args([url.as_str(), &tmp_dir.path().to_string_lossy()])
.status()?;
.status()
.context("Failed to run agama-autoyast")?;

let autoinst_json = tmp_dir.path().join(AUTOINST_JSON);
let content = fs::read_to_string(autoinst_json)?;
Expand Down

0 comments on commit 4493611

Please sign in to comment.