error in nim.cfg does not make the compiler quit with an error code
alaviss opened this issue · comments
Example
Use this test.nim.cfg
with an empty test.nim
:
--gibberish
Actual Output
$ nim c test.nim || echo got error
test.nim.cfg(1, 3) Error: Invalid command line option - gibberish
Expected Output
$ nim c test.nim || echo got error
test.nim.cfg(1, 3) Error: Invalid command line option - gibberish
got error
Possible Solution
- Write error handling code for this case:
Lines 159 to 161 in 7e7226f