mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
Estimated hours taken: 0.5
Branches: main
Give a better error message for nonexistent modules specified
in `:- import_module' or `:- include_module' declarations.
compiler/make.m:
compiler/make.dependencies.m:
compiler/make.module_dep_file.m:
Track which module imported or included the module
currently being processed when generating dependencies,
and include the name of the importing module in the error
message generated when a module can't be found.
tests/invalid/Mmakefile:
tests/invalid/nonexistent_import.{m,err_exp}:
Test case.
4 lines
212 B
Plaintext
4 lines
212 B
Plaintext
** Error: error reading file `nonexistent.m' to generate dependencies.
|
|
** Module `nonexistent' is imported or included by module `nonexistent_import'.
|
|
mercury_compile: can't find source for module `nonexistent'.
|