nice error message

This commit is contained in:
Araq 2014-08-08 09:54:43 +02:00
commit abf511245a

View file

@ -9,6 +9,9 @@
## Implements Nimrod's 'spawn'. ## Implements Nimrod's 'spawn'.
when not compileOption("threads"):
{.error: "Threadpool requires --threads:on option.".}
import cpuinfo, cpuload, locks import cpuinfo, cpuload, locks
{.push stackTrace:off.} {.push stackTrace:off.}