Commit 9479d546 authored by refold's avatar refold

Fix a crash on loading the config file (#1149).

parent 99264248
......@@ -863,7 +863,7 @@ installOptions showOrParseArgs =
flagToJobs = ReadE $ \s ->
case s of
"$ncpus" -> Right Nothing
_ -> case read s of
_ -> case reads s of
[(n, "")]
| n < 1 -> Left "The number of jobs should be 1 or more."
| n > 64 -> Left "You probably don't want that many jobs."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment