Files
mercury/tests/invalid/nonexistent_import.err_exp
Simon Taylor f42325917f Give a better error message for nonexistent modules specified
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.
2002-07-12 07:31:27 +00:00

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'.