I change lib/system/excpt.nim(362)
quit(1)
to
raise newException(SystemError, "SystemError")
and the following codes works
var a: int = 0
try:
var b: int = 5 div a
echo b
except SystemError:
echo "Exception: " & getCurrentExceptionMsg()
echo "end"
outputs:
SIGFPE: Arithmetic error.
Exception: SystemError
end
