diff options
author | Araq <rumpf_a@web.de> | 2017-03-21 13:09:57 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-03-21 13:09:57 +0100 |
commit | 3962c6339f8fdc65721ad640776881d58c6329e8 (patch) | |
tree | 723cea9d65ac987658a64fa4e7f73d74b04533fe /nimsuggest/nimsuggest.nim | |
parent | e01d2244e41603e0818dea8a98f4b23f9b3cf387 (diff) | |
download | Nim-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.nim | 4 |
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: |