summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2022-11-16 15:34:17 -0800
committerGitHub <noreply@github.com>2022-11-16 23:34:17 +0000
commit590f63782b9ee6307a2bc0e21917001a66ba16ba (patch)
tree0995fb0d4336c1c39fe192202fb790737351fd0a /src
parenta8d9bfd4f207d1a234c2ab7d28cd4ee763c535e0 (diff)
downloadbinaryen-590f63782b9ee6307a2bc0e21917001a66ba16ba.tar.gz
binaryen-590f63782b9ee6307a2bc0e21917001a66ba16ba.tar.bz2
binaryen-590f63782b9ee6307a2bc0e21917001a66ba16ba.zip
[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.
Diffstat (limited to 'src')
-rw-r--r--src/tools/wasm-split/wasm-split.cpp4
1 files changed, 2 insertions, 2 deletions
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;