From 9f4e494a74a0f2d30c4288f20657bc8fac186a4a Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 12 May 2016 15:41:20 -0700 Subject: show parse errors in c api --- src/binaryen-c.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/binaryen-c.cpp b/src/binaryen-c.cpp index 1d29830ca..135ca1504 100644 --- a/src/binaryen-c.cpp +++ b/src/binaryen-c.cpp @@ -419,7 +419,8 @@ BinaryenModuleRef BinaryenModuleRead(char* input, size_t inputSize) { try { WasmBinaryBuilder parser(*wasm, buffer, false); parser.read(); - } catch (ParseException&) { + } catch (ParseException& p) { + p.dump(std::cerr); Fatal() << "error in parsing wasm binary"; } return wasm; -- cgit v1.2.3