The last series (#1750 ) removed then silently.
A test is also added to avoid regression.
Pull-Request: #1773
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
var mmodule = identify_module(a)
if mmodule == null then
+ if a.file_exists then
+ toolcontext.error(null, "Error: `{a}` is not a Nit source file.")
+ else
+ toolcontext.error(null, "Error: cannot find module `{a}`.")
+ end
continue
end
--- /dev/null
+Error: cannot find module `fail.nit`.
+Error: `README.md` is not a Nit source file.
+Errors: 2. Warnings: 0.
base_simple3.nit
+fail.nit base_simple3.nit README.md