From 590f63782b9ee6307a2bc0e21917001a66ba16ba Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Wed, 16 Nov 2022 15:34:17 -0800 Subject: [wasm-split] Improve the error message for bad checksums (#5268) The previous error message was ambiguous and could easily be interpreted to mean the opposite of what it meant. --- src/tools/wasm-split/wasm-split.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/tools/wasm-split/wasm-split.cpp b/src/tools/wasm-split/wasm-split.cpp index aa21ec2cb..6a042679f 100644 --- a/src/tools/wasm-split/wasm-split.cpp +++ b/src/tools/wasm-split/wasm-split.cpp @@ -170,8 +170,8 @@ void getFunctionsToKeepAndSplit(Module& wasm, ProfileData profile = readProfile(profileFile); if (profile.hash != wasmHash) { Fatal() << "error: checksum in profile does not match module checksum. " - << "The split module must be the original module that was " - << "instrumented to generate the profile."; + << "The module to split must be the original, uninstrumented " + "module, not the module used to generate the profile."; } size_t i = 0; -- cgit v1.2.3