srctree

Robin Linden parent 1c9daf19 571399a9
wasm/example: Print module parse errors as text

inlinesplit
wasm/wasm_example.cpp added: 2, removed: 3, total 0
@@ -59,8 +59,7 @@ int main(int argc, char **argv) {
 
auto module = wasm::ByteCodeParser::parse_module(fs);
if (!module) {
std::cerr << "Unable to parse " << argv[1] << " as a wasm module: "
<< static_cast<std::underlying_type_t<wasm::ModuleParseError>>(module.error()) << '\n';
std::cerr << "Unable to parse " << argv[1] << " as a wasm module: " << to_string(module.error()) << '\n';
return 1;
}