aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-03-09 08:39:45 +0100
committerGitHub <[email protected]>2019-03-09 08:39:45 +0100
commit82e727974f15d3b4318b18bd59cb64d57e2e4f8a (patch)
tree8631ebda6ad2140074b36a8bca2fae452e50b2e4
parent6bbf8fd8526b1a2b8510f5cd32b47d3195591036 (diff)
parent0e6fdc32a1e66405faa08eb79fbc3e05e6fa0cf0 (diff)
downloadotp-82e727974f15d3b4318b18bd59cb64d57e2e4f8a.tar.gz
otp-82e727974f15d3b4318b18bd59cb64d57e2e4f8a.tar.bz2
otp-82e727974f15d3b4318b18bd59cb64d57e2e4f8a.zip
Merge pull request #2176 from josevalim/jv-beam-load-message
Clarify beam_load error message on file/module mismatch
-rw-r--r--erts/emulator/beam/beam_load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c
index 43adf7a5e0..0ad5329b2f 100644
--- a/erts/emulator/beam/beam_load.c
+++ b/erts/emulator/beam/beam_load.c
@@ -1425,7 +1425,7 @@ load_atom_table(LoaderState* stp, ErtsAtomEncoding enc)
ap = atom_tab(atom_val(stp->atom[1]));
sys_memcpy(sbuf, ap->name, ap->len);
sbuf[ap->len] = '\0';
- LoadError1(stp, "module name in object code is %s", sbuf);
+ LoadError1(stp, "BEAM file exists but it defines a module named %s", sbuf);
}
return 1;