nimsuggest: die with a project dir/file that doesn't exist

This commit is contained in:
Araq 2017-03-21 13:09:57 +01:00
commit 3962c6339f

View file

@ -485,6 +485,10 @@ proc mainCommand(graph: ModuleGraph; cache: IdentCache) =
incl gGlobalOptions, optCaasEnabled
isServing = true
wantMainModule()
if not fileExists(gProjectFull):
quit "cannot find file: " & gProjectFull
add(searchPaths, options.libpath)
# do not stop after the first error: