From 7a8273ae2c1854b9840fc56a952e572f673bb10f Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 13 Apr 2018 09:16:34 -0700 Subject: Better binary error reporting (#1505) Report the offset with the error. Also fix a compiler warning about comparing signed/unsigned types in the LEB code. --- src/tools/wasm-opt.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tools/wasm-opt.cpp') diff --git a/src/tools/wasm-opt.cpp b/src/tools/wasm-opt.cpp index d6ce53c26..a82dc4a2f 100644 --- a/src/tools/wasm-opt.cpp +++ b/src/tools/wasm-opt.cpp @@ -127,6 +127,7 @@ int main(int argc, const char* argv[]) { reader.read(options.extra["infile"], wasm); } catch (ParseException& p) { p.dump(std::cerr); + std::cerr << '\n'; Fatal() << "error in parsing input"; } catch (std::bad_alloc& b) { Fatal() << "error in building module, std::bad_alloc (possibly invalid request for silly amounts of memory)"; -- cgit v1.2.3