From 3962c6339f8fdc65721ad640776881d58c6329e8 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 21 Mar 2017 13:09:57 +0100 Subject: [PATCH] nimsuggest: die with a project dir/file that doesn't exist --- nimsuggest/nimsuggest.nim | 4 ++++ 1 file changed, 4 insertions(+) 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: