diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp --- a/llvm/lib/Object/WasmObjectFile.cpp +++ b/llvm/lib/Object/WasmObjectFile.cpp @@ -319,8 +319,8 @@ case wasm::WASM_SEC_DATACOUNT: return parseDataCountSection(Ctx); default: - return make_error("Bad section type", - object_error::parse_failed); + return make_error( + "Invalid section type: " + Twine(Sec.Type), object_error::parse_failed); } }