summaryrefslogtreecommitdiff
path: root/src/wasm-validator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-validator.h')
-rw-r--r--src/wasm-validator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm-validator.h b/src/wasm-validator.h
index 3c580ce51..bdc075946 100644
--- a/src/wasm-validator.h
+++ b/src/wasm-validator.h
@@ -46,6 +46,9 @@ public:
bool validate(Module& module, bool validateWeb=false) {
validateWebConstraints = validateWeb;
walkModule(&module);
+ if (!valid) {
+ WasmPrinter::printModule(&module, std::cerr);
+ }
return valid;
}