nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
loader: print error if bad files given to `scan_full` or `parse_full`
[nit.git]
/
src
/
loader.nit
diff --git
a/src/loader.nit
b/src/loader.nit
index
aa88cdc
..
9b79c62
100644
(file)
--- a/
src/loader.nit
+++ b/
src/loader.nit
@@
-152,6
+152,11
@@
redef class ModelBuilder
var mmodule = identify_module(a)
if mmodule == null then
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
continue
end