diff --git a/nimsuggest/nimsuggest.nim b/nimsuggest/nimsuggest.nim index 0b66dfb40..329e09510 100644 --- a/nimsuggest/nimsuggest.nim +++ b/nimsuggest/nimsuggest.nim @@ -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: