summary refs log tree commit diff stats
path: root/nimsuggest/nimsuggest.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-03-21 13:09:57 +0100
committerAraq <rumpf_a@web.de>2017-03-21 13:09:57 +0100
commit3962c6339f8fdc65721ad640776881d58c6329e8 (patch)
tree723cea9d65ac987658a64fa4e7f73d74b04533fe /nimsuggest/nimsuggest.nim
parente01d2244e41603e0818dea8a98f4b23f9b3cf387 (diff)
downloadNim-3962c6339f8fdc65721ad640776881d58c6329e8.tar.gz
nimsuggest: die with a project dir/file that doesn't exist
Diffstat (limited to 'nimsuggest/nimsuggest.nim')
-rw-r--r--nimsuggest/nimsuggest.nim4
1 files changed, 4 insertions, 0 deletions
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: