Skip to content

Commit

Permalink
hopefully get more descriptive error output
Browse files Browse the repository at this point in the history
  • Loading branch information
danleh committed Jul 26, 2024
1 parent 4f0184f commit ab5b708
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/test_utilities/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ pub fn wasm_validate(path: impl AsRef<Path>) -> Result<(), String> {
if validate_output.status.success() {
Ok(())
} else {
Err(format!("invalid wasm file {}\n{}",
Err(format!("invalid wasm file {}\n{}\n{}",
path.display(),
String::from_utf8_lossy(&validate_output.stderr)))
String::from_utf8_lossy(&validate_output.stdout),
String::from_utf8_lossy(&validate_output.stderr),
))
}
}

Expand Down

0 comments on commit ab5b708

Please sign in to comment.