nimsuggest: die with a project dir/file that doesn't exist
This commit is contained in:
parent
e01d2244e4
commit
3962c6339f
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue