diff options
author | Sam Clegg <sbc@chromium.org> | 2018-06-10 08:28:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-10 08:28:31 -0700 |
commit | 7bed8a09423dbe94200fd73bf1b9ede5eb646e59 (patch) | |
tree | 23eabfe91adc6e595364fb36aaab9cf0d075ce42 /src/tools/wasm-opt.cpp | |
parent | c7b78eadec731675ef3274126d0d19df5e4263c5 (diff) | |
download | binaryen-7bed8a09423dbe94200fd73bf1b9ede5eb646e59.tar.gz binaryen-7bed8a09423dbe94200fd73bf1b9ede5eb646e59.tar.bz2 binaryen-7bed8a09423dbe94200fd73bf1b9ede5eb646e59.zip |
Add source map handling to wasm-emscripten-finalize (#1595)
Diffstat (limited to 'src/tools/wasm-opt.cpp')
-rw-r--r-- | src/tools/wasm-opt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/wasm-opt.cpp b/src/tools/wasm-opt.cpp index 43496b34e..f78278bcf 100644 --- a/src/tools/wasm-opt.cpp +++ b/src/tools/wasm-opt.cpp @@ -145,6 +145,10 @@ int main(int argc, const char* argv[]) { p.dump(std::cerr); std::cerr << '\n'; Fatal() << "error in parsing input"; + } catch (MapParseException& p) { + p.dump(std::cerr); + std::cerr << '\n'; + Fatal() << "error in parsing wasm source map"; } catch (std::bad_alloc& b) { Fatal() << "error in building module, std::bad_alloc (possibly invalid request for silly amounts of memory)"; } |