4 ms·
There is really no way to trap it? Maybe fork the NimScript stuff to give the option to try to hang around?
by ilaksh 6y ago
There is really no way to trap it? Maybe fork the NimScript stuff to give the option to try to hang around?
- gw 6y agoI did manage to fork it and prevent it from aborting, but i don't want to maintain it forever. I tracked it down to this function: https://github.com/nim-lang/Nim/blob/cd28fe2ef7a204721efa72082c9f65f8d13bcfb3/compiler/msgs.nim#L408-L421 https://github.com/nim-lang/Nim/blob/cd28fe2ef7a204721efa720... It's calling `quit` which cannot be caught in a try statement.