diff --git a/crates/test_utilities/src/lib.rs b/crates/test_utilities/src/lib.rs index 0dd83967..95adde1c 100644 --- a/crates/test_utilities/src/lib.rs +++ b/crates/test_utilities/src/lib.rs @@ -81,9 +81,11 @@ pub fn wasm_validate(path: impl AsRef) -> 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), + )) } }